Revert "Patch bugs on locale redirections"

This reverts commit 614eb923d8.
This commit is contained in:
Restray
2022-04-02 19:28:20 +02:00
parent 614eb923d8
commit 92d1f5aa55
4 changed files with 409 additions and 412 deletions

View File

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