diff options
author | 2021-07-30 23:11:24 -0700 | |
---|---|---|
committer | 2021-07-30 23:11:24 -0700 | |
commit | ee95351ee83242e47957d9d278224fd0b5eec4e7 (patch) | |
tree | 5152d654049bd0000f7ba26e79792f7e5d7172e5 /docs/src/pages/index.astro | |
parent | bc7dae9fafaf02b53c8122334713f8f6bb242f09 (diff) | |
download | astro-ee95351ee83242e47957d9d278224fd0b5eec4e7.tar.gz astro-ee95351ee83242e47957d9d278224fd0b5eec4e7.tar.zst astro-ee95351ee83242e47957d9d278224fd0b5eec4e7.zip |
add finnish to 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 b462cacf9..eafd01f46 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 = ['en', 'nl']; + const KNOWN_LANGUAGES = ['en', 'nl', 'fi']; let newLang = (window.navigator.userLanguage || window.navigator.language || 'en').substr(0, 2); if (newLang === 'en') { window.location.pathname = '/getting-started'; |