fix(i18n): set key and ns separator default to false (#1432)

This commit is contained in:
Junyi 2023-02-07 11:57:40 +08:00 committed by GitHub
parent debd95894f
commit 88c35a086a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@ i18n
// }, // },
// ns: ['client'], // ns: ['client'],
resources: {}, resources: {},
keySeparator: false,
nsSeparator: false,
}); });
i18n.on('languageChanged', (lng) => { i18n.on('languageChanged', (lng) => {

View File

@ -13,6 +13,8 @@ export function createI18n(options: ApplicationOptions) {
instance.init({ instance.init({
lng: 'en-US', lng: 'en-US',
resources: {}, resources: {},
keySeparator: false,
nsSeparator: false,
...options.i18n, ...options.i18n,
}); });
return instance; return instance;