i18n refactoring, locale loaders, custom strings, fix #231

This commit is contained in:
lesion
2023-02-07 17:44:23 +01:00
parent a36c8c29cb
commit 98f6b9618c
7 changed files with 61 additions and 34 deletions

View File

@@ -89,6 +89,7 @@ module.exports = {
code: key,
name: locales[key],
file: `${key}.json`,
file: 'loader.js',
iso: key
})),
vueI18n: {
@@ -98,9 +99,7 @@ module.exports = {
langDir: 'locales',
lazy: true,
strategy: 'no_prefix',
baseUrl: config.baseurl,
skipSettingLocaleOnNavigate: true,
skipNuxtState: true
},
serverMiddleware: ['server/routes'],