diff options
author | Junseong Park | 2024-05-01 19:14:56 +0900 |
---|---|---|
committer | GitHub | 2024-05-01 12:14:56 +0200 |
commit | 59746b0c7304733b91bf6af8232421e0b97e6dac (patch) | |
tree | e3bdff5c95df03501ef23bebb2c88fa868367f19 | |
parent | e3d62b5b3eafd6978c5c5dcee6e721b3dd57e8cd (diff) | |
download | IT.starlight-59746b0c7304733b91bf6af8232421e0b97e6dac.tar.gz IT.starlight-59746b0c7304733b91bf6af8232421e0b97e6dac.tar.bz2 IT.starlight-59746b0c7304733b91bf6af8232421e0b97e6dac.zip |
i18n(ko-KR): update `i18n.mdx` (#1808)
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
-rw-r--r-- | docs/src/content/docs/ko/guides/i18n.mdx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/src/content/docs/ko/guides/i18n.mdx b/docs/src/content/docs/ko/guides/i18n.mdx index a1380be1..0a962dd4 100644 --- a/docs/src/content/docs/ko/guides/i18n.mdx +++ b/docs/src/content/docs/ko/guides/i18n.mdx @@ -143,6 +143,34 @@ Starlight๋ ๊ทํ๊ฐ ๋ชจ๋ ์ธ์ด๋ก ๊ฐ์ ํ์ด์ง๋ฅผ ์์ฑํ ๊ฒ์ ๊ธฐ ํน์ ์ธ์ด์ ๋ํ ๋ฒ์ญ์ด ์์ง ์ ๊ณต๋์ง ์๋ ๊ฒฝ์ฐ Starlight๋ ๋
์์๊ฒ ํด๋น ํ์ด์ง์ ์ฝํ
์ธ ๋ฅผ ๊ธฐ๋ณธ ์ธ์ด(`defaultLocale`์ ํตํด ์ค์ ๋ ์ธ์ด)๋ก ํ์ํฉ๋๋ค. ์๋ฅผ ๋ค์ด, About ํ์ด์ง์ ํ๋์ค์ด ๋ฒ์ ์ ์์ง ๋ง๋ค์ง ์์๊ณ ๊ธฐ๋ณธ ์ธ์ด๊ฐ ์์ด์ธ ๊ฒฝ์ฐ `/fr/about`์ ๋ฐฉ๋ฌธํ ๋
์๋ ์ด ํ์ด์ง๊ฐ ์์ง ๋ฒ์ญ๋์ง ์์๋ค๋ ์๋ฆผ๊ณผ ํจ๊ป `/en/about`์ ์๋ ์์ด ์ฝํ
์ธ ๋ฅผ ๋ณด๊ฒ ๋ฉ๋๋ค. ์ด๋ฅผ ํตํด ๊ธฐ๋ณธ ์ธ์ด๋ก ์ฝํ
์ธ ๋ฅผ ์ถ๊ฐํ ๋ค์ ์ ์ง์ ์ผ๋ก ๋ฒ์ญํ ์ ์์ต๋๋ค. +## ์ฌ์ดํธ ์ ๋ชฉ ๋ฒ์ญ + +๊ธฐ๋ณธ์ ์ผ๋ก Starlight๋ ๋ชจ๋ ์ธ์ด์ ๋ํด ๋์ผํ ์ฌ์ดํธ ์ ๋ชฉ์ ์ฌ์ฉํฉ๋๋ค. +๊ฐ ๋ก์ผ์ผ์ ์ ๋ชฉ์ ์ฌ์ฉ์ ์ ์ํด์ผ ํ๋ ๊ฒฝ์ฐ Starlight ์ต์
์ [`title`](/ko/reference/configuration/#title-ํ์)์ ๊ฐ์ฒด๋ฅผ ์ ๋ฌํ ์ ์์ต๋๋ค. + +```diff lang="js" +// astro.config.mjs +import { defineConfig } from 'astro/config'; +import starlight from '@astrojs/starlight'; + +export default defineConfig({ + integrations: [ + starlight({ +- title: '๋์ ๋ฌธ์', ++ title: { ++ ko: '๋์ ๋ฌธ์', ++ 'zh-CN': 'ๆ็ๆๆกฃ', ++ }, + defaultLocale: 'ko', + locales: { + ko: { label: 'ํ๊ตญ์ด' }, + 'zh-cn': { label: '็ฎไฝไธญๆ', lang: 'zh-CN' }, + }, + }), + ], +}); +``` + ## Starlight UI ๋ฒ์ญ import LanguagesList from '~/components/languages-list.astro'; |