Improved language picker

This commit is contained in:
2026-08-16 21:35:52 +03:00
parent dd90d250c6
commit e535fadde2
3 changed files with 48 additions and 21 deletions

View File

@@ -6,4 +6,6 @@ export const activeSectionState = atom('home');
export const themeState = atom('dark');
export const languageState = atom('en');
export const languageState = atom(
typeof navigator !== 'undefined' && navigator.language?.startsWith('fi') ? 'fi' : 'en'
);