diff options
author | 2021-08-24 14:31:24 +0900 | |
---|---|---|
committer | 2021-08-23 22:31:24 -0700 | |
commit | b3a1c0cdcc675a7e55a59fce2eedc2bd5fdce31f (patch) | |
tree | 123f7c5f706fd9f7edb67c160df4c6ab0072bf60 /docs/src/pages/index.astro | |
parent | 5be1c7694b472e1ba5b83fd04fcdb4845079d4f7 (diff) | |
download | astro-b3a1c0cdcc675a7e55a59fce2eedc2bd5fdce31f.tar.gz astro-b3a1c0cdcc675a7e55a59fce2eedc2bd5fdce31f.tar.zst astro-b3a1c0cdcc675a7e55a59fce2eedc2bd5fdce31f.zip |
[i18n][Docs] Add Korean Translation of Getting Started page (#1189)
* translate getting-started.md into KR
* add kr to KNOWN_LANGUAGES
* add kr config to sidebar
* add kr option to the language selector
Diffstat (limited to 'docs/src/pages/index.astro')
-rw-r--r-- | docs/src/pages/index.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index a8a921093..ab67e2e1f 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -6,7 +6,7 @@ import Layout from '../layouts/MainLayout.astro'; // WIP: trigger a client-side redirect based on the browser language. // A vercel.json redirect is enforced in production, so no user should ever see this page. // Remove the vercel.json redirect when this is ready. - const KNOWN_LANGUAGES = ['bg', 'de','en','es','fi','nl','pt-br','zh-CN','zh-TW', 'fr']; + const KNOWN_LANGUAGES = ['bg', 'de','en','es','fi','nl','pt-br','zh-CN','zh-TW', 'fr', 'kr']; let newLangWithRegion = (window.navigator.userLanguage || window.navigator.language || 'en-US').substr(0, 5); let newLang = newLangWithRegion.substr(0, 2); if (newLang === 'en') { |