Closed Loschcode closed 8 months ago
After following my intuition, I commented this part
if (window.requestIdleCallback) {
window.requestIdleCallback(hydrate);
} else {
// Safari doesn't support requestIdleCallback
// https://caniuse.com/requestidlecallback
window.setTimeout(hydrate, 1);
}
And it fixed the problem. I'm not quite sure why but I hope it helps other people in the same situation.
Are you adding export const handle = { i18n: ["misc"] }
in the route where you call useTranslation("misc")
?
Also change the supported languages to set your default/fallback one last, otherwise it may prioritize it over the other options.
Describe the bug
After copying almost exactly the remix-18next instructions in my project, the client side doesn't seem to update the translations when I update the JSON file, so it throws the following error
The content of my configuration is as follow
As I said, I basically just copied everything and replaced the
common
namesapce bymisc
, that's all. The only place I use it, I do it like soIs there something wrong with my code? One disturbing detail is also that yesterday it just didn't show any translation, it returned the key, but now it shows an old translation, like it finally took a change into consideration but is never quite updated. What am I missing here?
Your Example Website or App
https://github.com/aquiestoy-io/app
Steps to Reproduce the Bug or Issue
Expected behavior
Screenshots or Videos
Platform
Additional context
No response