summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunseong Park2025-07-12 17:52:29 +0900
committerGitHub2025-07-12 10:52:29 +0200
commitc07478ba8480b24c4c967dd660a39b844f3900fc (patch)
tree91ffff6bf2d8611a7e9b7c0bb9a85f58bf037cda
parentb00748cbeaf2d4b0e383cc57136f4afdc689d833 (diff)
downloadIT.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.mdx8
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
---
```