i18n: localize frontpage's layout
This commit is contained in:
1 parent
d1a041ff56
commit
64107e51a0
13 files changed
+248
-90
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import i18n, { type Config } from 'sveltekit-i18n'
|
||||
|
||||
const config: Config = {
|
||||
loaders: [
|
||||
{
|
||||
locale: 'en',
|
||||
key: '',
|
||||
loader: async () => (await import('./i18n/en.json')).default,
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export const { t, locale, locales, loading, loadTranslations } = new i18n(
|
||||
config
|
||||
)
|
||||
Reference in new issue
Block a user