summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunseong Park2024-05-01 19:14:56 +0900
committerGitHub2024-05-01 12:14:56 +0200
commit59746b0c7304733b91bf6af8232421e0b97e6dac (patch)
treee3bdff5c95df03501ef23bebb2c88fa868367f19
parente3d62b5b3eafd6978c5c5dcee6e721b3dd57e8cd (diff)
downloadIT.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.mdx28
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';