jsverse / transloco

🚀 😍 The internationalization (i18n) library for Angular
https://jsverse.github.io/transloco/
MIT License
2.01k stars 195 forks source link

Bug(transloco): translation randomly not resolved for some clients #801

Open KessoumML opened 2 days ago

KessoumML commented 2 days ago

Is there an existing issue for this?

Which Transloco package(s) are the source of the bug?

Transloco

Is this a regression?

No

Current behavior

We have an issue that happens randomly and couldn't reproduce related to resolving variables in translation:

image

image

Sorry that I cannot provide a link for the bug, it's not possible to reproduce

Expected behavior

image

Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.

https://codesandbox.io/s/ngneat-transloco-kn52hs

Transloco Config

module.exports = {
  rootTranslationsPath: 'src/assets/i18n/',
  langs: ['en', 'fr', 'cn'],
  keysManager: {}
};

Please provide the environment you discovered this bug in

Transloco: 7.4.0
Angular: 17
Node: 19
Package Manager: npm
OS: Windows

Browser

Chrome desktop all versions

Additional context

hkukhjk

I would like to make a pull request for this bug

Yes 🚀

shaharkazaz commented 2 days ago

@KessoumML doing a regular refresh resolves the issue as well? Without reproduction, there is not much I can do here.

KessoumML commented 1 day ago

No, regular refresh doesn't fix the issue. it should be ctrl + f5. The cache configuration is set to no cache image I'm currently exploring the possibility of including release hash to translated files to see if it fixes the issue. Truly, there is no much to do if I can't reproduce it