I18n with remix problem on deployment with heroku

I have a remix shopify app that i deploy on heroku. I use i18n for translations and all locales are located in /public/locales folder. The problem is, when i update or add a new locale and deploy it to heroku, new locales seem not to be found in the deployed version and only after couple of days they appear normally.

I suspect caching is somehow impacting this, i tried changing vite config, tried to disable caching in i18n config, however it didn’t help.

Moreover, when i build the project locally i see that new locales are present in the build.

1 Like

Hi, @valma-valma . Are you able to resolve this issue? I’m facing the same issue while deploying the new translations on Heroku with Remix i18n.

Added this configuration in the entry.client.tsx file and it worked. @valma-valma

backend: {
loadPath: "/locales/{{lng}}/{{ns}}.json",
requestOptions: {
cache: "no-store"
}
}

Sadly did not work for me :confused: