add finnish to language selector
This commit is contained in:
parent
bc7dae9faf
commit
ee95351ee8
2 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue