diff options
author | 2021-08-06 22:20:36 +0400 | |
---|---|---|
committer | 2021-08-06 11:20:36 -0700 | |
commit | b71ccc2b9d5f8d335a1b8637ea6aaeb0a2b520ed (patch) | |
tree | dd0f7bd8d749d90120f207484e2dacc57a8d8bd2 /docs/src/pages/index.astro | |
parent | 2360e2c8a27eb4f4f8dafbc1bd8411e8fdf3e563 (diff) | |
download | astro-b71ccc2b9d5f8d335a1b8637ea6aaeb0a2b520ed.tar.gz astro-b71ccc2b9d5f8d335a1b8637ea6aaeb0a2b520ed.tar.zst astro-b71ccc2b9d5f8d335a1b8637ea6aaeb0a2b520ed.zip |
[ADD][i18n][Docs] French translation of getting started page (#1040)
* [ADD][i18n][Docs] French translation of getting started page
- Add Sidebar translated menus
- Add lang code fr to language selection
- Add french translated getting-started page
* [ADD][i18n][Docs] Adding 'fr' key to known langs for automatic redirect
Diffstat (limited to '')
-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 eaa67e524..3b2eee767 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -6,7 +6,7 @@ import Layout from '../layouts/MainLayout.astro'; // This is some wip redirect code 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']; + const KNOWN_LANGUAGES = ['bg', 'de','en','es','fi','nl','pt-br','zh-CN','zh-TW', 'fr']; let newLangWithRegion = (window.navigator.userLanguage || window.navigator.language || 'en-US').substr(0, 5); let newLang = newLangWithRegion.substr(0, 2); if (newLang === 'en') { |