hotfix: git added stupid locale stuff because resets dont remove untracked files
This commit is contained in:
1 parent
8b752393e0
commit
8721e61554
6 files changed
-31
No files matched your search
@@ -1,3 +0,0 @@
|
|||||||
**English translation progress**
|
|
||||||
|
|
||||||
100%: The base language, translated by a native.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"create": "Create"
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
**Spanish language progress**
|
|
||||||
|
|
||||||
0%: google translated (lmao)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"create": "Crear"
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import { browser } from '$app/environment'
|
|
||||||
import { getLocaleFromNavigator, init, register } from 'svelte-i18n'
|
|
||||||
|
|
||||||
register('en', () => import('./en/ui/button.json'))
|
|
||||||
register('es', () => import('./es/ui/button.json'))
|
|
||||||
|
|
||||||
init({
|
|
||||||
fallbackLocale: 'en',
|
|
||||||
initialLocale: browser ? window.navigator.language : 'en',
|
|
||||||
})
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import { browser } from '$app/environment'
|
|
||||||
import { locale, waitLocale } from 'svelte-i18n'
|
|
||||||
|
|
||||||
export const load = async () => {
|
|
||||||
if (browser) {
|
|
||||||
locale.set(window.navigator.language)
|
|
||||||
}
|
|
||||||
await waitLocale()
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user