You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use lastUsed and savsMissing=ture at same time (using locize backend), translation can not work properly. When I tried to switch local, no translation shows. Only the default local will be shown, translations of the other locals are not shown. I looked at logs and network and it seems that it didn't try to fetch the translation.
If i use either lastUsed or locize saveMissing alone, it works with no problem.
constisBrowser=typeofwindow!=='undefined'module.exports={debug: process.env.NODE_ENV==='development',i18n: {defaultLocale: 'en',locales: ['en','de'],},backend: {backendOptions: [{expirationTime: 10// 1 hour},{projectId: 'd3b405cf-2532-46ae-adb8-99e88d876733',apiKey: 'my-key',version: 'latest'}],backends: isBrowser ? [LocalStorageBackend,LocizeBackend] : [],},serializeConfig: false,use: isBrowser ? [ChainedBackend,require('locize-lastused')] : [],locizeLastUsed: {projectId: 'd3b405cf-2532-46ae-adb8-99e88d876733',apiKey: 'my-key,
version: 'latest',debounceSubmit: 10000},saveMissing: process.env.NODE_ENV==='development'&&isBrowser// do not set saveMissing to true for production and also not when using the chained backend}
Seems to work as expecetd:
Maybe in your project the saveMissing request is not done anymore, because the key is not missing anymore? It may be it is saved in your local json files on server side?
🐛 Bug Report
If I use lastUsed and savsMissing=ture at same time (using locize backend), translation can not work properly. When I tried to switch local, no translation shows. Only the default local will be shown, translations of the other locals are not shown. I looked at logs and network and it seems that it didn't try to fetch the translation.
If i use either lastUsed or locize saveMissing alone, it works with no problem.
To Reproduce
I used the example repo to reproduce it.
next-i18next.config.js file:
Expected behavior
Translation of all locals can be displayed.
Your Environment
The text was updated successfully, but these errors were encountered: