Replies: 3 comments 5 replies
-
saveMissing only works if a backend is configured... |
Beta Was this translation helpful? Give feedback.
-
Thank you, I finally found the issue. In the _app.tsx I had two return. Return an empty div for a sec was the issue Edit: Seems to be an issue for my whole app, missingKeys are detected only on the first return in the component. |
Beta Was this translation helpful? Give feedback.
-
In this case loading is not a state, therefore it will never trigger a re-render on the server side. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make it work saveMissing.
I added some debug in i18next.js and when saveMissing is called, this.backend is undefined so nothing is sent to i18next-fs-backend.
if (this.backend && this.backend.create) { this.backend.create(languages, namespace, key, fallbackValue, null, _objectSpread$5(_objectSpread$5({}, options), {}, { isUpdate: isUpdate })); }
I noticed that the saveMissing() call is client side and seems to be a problem, should be called on server side right ?
Everything else works perfectly, the existing keys are translated.
Beta Was this translation helpful? Give feedback.
All reactions