Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/content/docs/ko/guides/authoring-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ Starlight는 목록 및 테이블과 같은 다른 모든 Markdown 작성 구문

## 고급 Markdown 및 MDX 구성

Starlight는 Astro의 구성 가능한 [`markdown.processor`](https://docs.astro.build/ko/reference/configuration-reference/#markdownprocessor)를 사용하여 Markdown 및 MDX를 렌더링합니다. 구성된 프로세서에 플러그인과 옵션을 전달하여 사용자 정의 구문과 동작에 대한 지원을 추가할 수 있습니다. 자세한 내용은 Astro 문서의 [“Markdown 플러그인”](https://docs.astro.build/ko/guides/markdown-content/#markdown-플러그인)을 참조하세요.
Starlight는 Astro의 구성 가능한 [`markdown.processor`](https://docs.astro.build/ko/reference/configuration-reference/#markdownprocessor)를 사용하여 Markdown 및 MDX를 렌더링합니다. 구성된 프로세서에 플러그인과 옵션을 전달하여 사용자 정의 구문과 동작에 대한 지원을 추가할 수 있습니다. 자세한 내용은 Astro 문서의 [“Markdown 프로세서 플러그인”](https://docs.astro.build/ko/guides/markdown-content/#markdown-프로세서-플러그인)을 참조하세요.

## Markdoc

Expand Down
12 changes: 6 additions & 6 deletions docs/src/content/docs/ko/guides/i18n.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ Starlight 플러그인 컨텍스트에서 [`useTranslations()`](/ko/reference/pl

```json title="src/content/i18n/en.json"
{
"link.astro": "Astro documentation",
"link.astro.custom": "Astro documentation for {{feature}}"
"link.astro": "Astro 문서",
"link.astro.custom": "{{feature}}에 대한 Astro 문서"
}
```

Expand All @@ -323,18 +323,18 @@ Starlight 플러그인 컨텍스트에서 [`useTranslations()`](/ko/reference/pl
<a href="https://docs.astro.build/">
{Astro.locals.t('link.astro')}
</a>
<!-- 렌더링: <a href="...">Astro documentation</a> -->
<!-- 렌더링: <a href="...">Astro 문서</a> -->
```

두 번째 UI 문자열은 `{{feature}}` 자리 표시자에 i18next의 [보간 구문](https://www.i18next.com/translation-function/interpolation)을 사용합니다.
`feature`의 값은 `t()`의 두 번째 인수로 전달된 옵션 객체에서 설정되어야 합니다:

```astro {3}
<!-- src/components/Example.astro -->
<a href="https://docs.astro.build/en/guides/astro-db/">
{Astro.locals.t('link.astro.custom', { feature: 'Astro DB' })}
<a href="https://docs.astro.build/ko/guides/actions/">
{Astro.locals.t('link.astro.custom', { feature: 'Astro 액션' })}
</a>
<!-- 렌더링: <a href="...">Astro documentation for Astro DB</a> -->
<!-- 렌더링: <a href="...">Astro 액션에 대한 Astro 문서</a> -->
```

보간, 서식 지정 등과 함께 `t()` 함수를 사용하는 방법에 대한 자세한 내용은 [i18next 문서](https://www.i18next.com/overview/api#t)를 참조하세요.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/ko/reference/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export default {

절대 파일 경로와 함께 `absolutePathToLang()`을 호출하여 해당 파일의 언어를 가져옵니다.

이는 Markdown 또는 MDX 파일을 처리하기 위해 [remark 또는 rehype 플러그인](https://docs.astro.build/ko/guides/markdown-content/#markdown-플러그인)을 추가할 때 특히 유용할 수 있습니다.
이는 Markdown 또는 MDX 파일을 처리하기 위해 [remark 또는 rehype 플러그인](https://docs.astro.build/ko/guides/markdown-content/#markdown-프로세서-플러그인)을 추가할 때 특히 유용할 수 있습니다.
이러한 플러그인에서 사용하는 [가상 파일 형식](https://github.com/vfile/vfile)에는 처리 중인 파일의 [절대 경로](https://github.com/vfile/vfile#filepath)가 포함되어 있으며, 이는 `absolutePathToLang()`과 함께 사용하여 파일의 언어를 확인할 수 있습니다.
반환된 언어는 해당 언어에 대한 UI 문자열을 가져오기 위해 [`useTranslations()`](#usetranslations) 도우미와 함께 사용할 수 있습니다.

Expand Down
Loading