fix: use 'en' as default locale, fix #481

this is a temporary fix as getting the default locale choosen by admin is not so easy with nuxt2
This commit is contained in:
lesion 2024-11-11 12:31:43 +01:00
parent ac0aa23c89
commit 4e5ffa9845
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -89,7 +89,6 @@ module.exports = {
locales: Object.keys(locales).map(key => ({
code: key,
name: locales[key],
file: `${key}.json`,
file: 'loader.js',
language: key
})),
@ -101,6 +100,7 @@ module.exports = {
lazy: true,
strategy: 'no_prefix',
skipSettingLocaleOnNavigate: true,
defaultLocale: 'en',
},
render: {