diff options
author | Junseong Park | 2025-07-12 17:52:29 +0900 |
---|---|---|
committer | GitHub | 2025-07-12 10:52:29 +0200 |
commit | c07478ba8480b24c4c967dd660a39b844f3900fc (patch) | |
tree | 91ffff6bf2d8611a7e9b7c0bb9a85f58bf037cda | |
parent | b00748cbeaf2d4b0e383cc57136f4afdc689d833 (diff) | |
download | IT.starlight-c07478ba8480b24c4c967dd660a39b844f3900fc.tar.gz IT.starlight-c07478ba8480b24c4c967dd660a39b844f3900fc.tar.bz2 IT.starlight-c07478ba8480b24c4c967dd660a39b844f3900fc.zip |
i18n(ko-KR): update `i18n.mdx` (#3292)
-rw-r--r-- | docs/src/content/docs/ko/guides/i18n.mdx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/src/content/docs/ko/guides/i18n.mdx b/docs/src/content/docs/ko/guides/i18n.mdx index e928d4b3..7a6fcc2d 100644 --- a/docs/src/content/docs/ko/guides/i18n.mdx +++ b/docs/src/content/docs/ko/guides/i18n.mdx @@ -359,15 +359,15 @@ const allStrings = Astro.locals.t.all(); #### `t.exists()` -๋ก์ผ์ผ์ ๋ํ ๋ฒ์ญ ํค๊ฐ ์กด์ฌํ๋์ง ํ์ธํ๋ ค๋ฉด ๋ฒ์ญ ํค๋ฅผ ์ฒซ ๋ฒ์งธ ์ธ์๋ก ์ ๋ฌํ์ฌ `locals.t.exists()` ํจ์๋ฅผ ์ฌ์ฉํฉ๋๋ค. -ํ์ฌ ๋ก์ผ์ผ์ ์ฌ์ ์ํด์ผ ํ๋ ๊ฒฝ์ฐ ์ ํ์ ๋ ๋ฒ์งธ ์ธ์๋ฅผ ์ ๋ฌํฉ๋๋ค. +๋ฒ์ญ ํค๊ฐ ์กด์ฌํ๋์ง ํ์ธํ๋ ค๋ฉด ๋ฒ์ญ ํค๋ฅผ ์ฒซ ๋ฒ์งธ ์ธ์๋ก ์ ๋ฌํ์ฌ `locals.t.exists()` ํจ์๋ฅผ ์ฌ์ฉํฉ๋๋ค. +ํน์ ๋ก์ผ์ผ์ ๋ํ ๋ฒ์ญ์ด ์กด์ฌํ๋์ง ํ์ธํด์ผ ํ๋ ๊ฒฝ์ฐ ์ ํ์ ์ผ๋ก ๋ ๋ฒ์งธ ์ธ์๋ฅผ ์ ๋ฌํฉ๋๋ค. ```astro --- // src/components/Example.astro -const keyExistsInCurrentLocale = Astro.locals.t.exists('a.key'); +const keyExists = Astro.locals.t.exists('a.key'); // ^ true -const keyExistsInFrench = Astro.locals.t.exists('another.key', { lng: 'fr' }); +const keyExistsInFrench = Astro.locals.t.exists('other.key', { lngs: ['fr'] }); // ^ false --- ``` |