summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-07-30 23:11:24 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-07-30 23:11:24 -0700
commitee95351ee83242e47957d9d278224fd0b5eec4e7 (patch)
tree5152d654049bd0000f7ba26e79792f7e5d7172e5 /docs
parentbc7dae9fafaf02b53c8122334713f8f6bb242f09 (diff)
downloadastro-ee95351ee83242e47957d9d278224fd0b5eec4e7.tar.gz
astro-ee95351ee83242e47957d9d278224fd0b5eec4e7.tar.zst
astro-ee95351ee83242e47957d9d278224fd0b5eec4e7.zip
add finnish to language selector
Diffstat (limited to 'docs')
-rw-r--r--docs/src/components/Header/LanguageSelect.tsx5
-rw-r--r--docs/src/pages/index.astro2
2 files changed, 5 insertions, 2 deletions
diff --git a/docs/src/components/Header/LanguageSelect.tsx b/docs/src/components/Header/LanguageSelect.tsx
index 89cd29ed5..4eb80c2ad 100644
--- a/docs/src/components/Header/LanguageSelect.tsx
+++ b/docs/src/components/Header/LanguageSelect.tsx
@@ -60,7 +60,10 @@ const SelectLanguage: FunctionalComponent<{}> = ({}) => {
<span>English</span>
</option>
<option value="nl">
- <span>Dutch</span>
+ <span>Nederlands</span>
+ </option>
+ <option value="fi">
+ <span>Suomi</span>
</option>
</select>
</div>
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';