Patch bugs on locale redirections

This commit is contained in:
Restray
2022-04-02 17:33:50 +02:00
parent d910b21185
commit 614eb923d8
4 changed files with 414 additions and 411 deletions

View File

@@ -3,19 +3,19 @@ import lang from './lang.json';
/** @type {import('sveltekit-i18n').Config} */
export const config = {
fallbackLocale: 'en',
fallbackLocale: 'en-US',
translations: {
en: { lang },
fr: { lang }
'en-US': { lang },
'fr-FR': { lang }
},
loaders: [
{
locale: 'en',
locale: 'en-US',
key: '',
loader: async () => (await import('../../static/locales/en.json')).default
},
{
locale: 'fr',
locale: 'fr-FR',
key: '',
loader: async () => (await import('../../static/locales/fr.json')).default
}