mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
Update example init
This commit is contained in:
parent
bb406c1f79
commit
bf22d1f0c3
@ -1,4 +1,4 @@
|
||||
import { register, init } from 'svelte-i18n'
|
||||
import { register, init, getLocaleFromNavigator } from 'svelte-i18n'
|
||||
|
||||
register('en', () => import('../messages/en.json'))
|
||||
register('pt-BR', () => import('../messages/pt-BR.json'))
|
||||
@ -6,5 +6,5 @@ register('es-ES', () => import('../messages/es-ES.json'))
|
||||
|
||||
init({
|
||||
fallbackLocale: 'en',
|
||||
initialLocale: { navigator: true },
|
||||
initialLocale: getLocaleFromNavigator(),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user