mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
13 lines
224 B
Svelte
13 lines
224 B
Svelte
|
<script>
|
||
|
import { locale } from './dist/i18n.mjs'
|
||
|
|
||
|
let loading = false
|
||
|
|
||
|
$: {
|
||
|
if (typeof window !== 'undefined') {
|
||
|
document.documentElement.setAttribute('lang', $locale)
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<slot {loading} />
|