[BUG] Incorrect update of Meta tags in Remix (RR7)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 457
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 16
Description
### Description
After changing locale, the translation inside meta tags stays the same. Trying to change locale again -> translation changes but it translates to previous locale.
Same happens in my production project RR7 + Lingui v5.
### Verifications
- [x] I've checked [the docs](https://lingui.dev) and this isn't covered there.
- [x] I've searched existing issues on [GitHub](https://github.com/lingui/js-lingui/issues).
### Reproduction Steps
1. Run remix example from js-lingui
2. Open developer tools
3. Change locale
4. Meta description stays the same
5. Change locale again
6. Meta description changes to FR while active locale is EN
### Expected Behavior
Meta tags description updates to current active locale
### Macro Support
Babel with babel-macro-plugin
### Lingui Version
4.11.0 (in example) and 5.2.0 (in my production)
### Babel Version
7.24.6 (in example) and 7.26.10 (in my production)
### Framework
Remix (in example) and RR7 (in my production)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Remix example from js-lingui and reproduce the issue by changing locale while inspecting the meta description in developer tools. Trace how the active locale reaches the meta tags and verify that each locale change updates them to the currently active translation rather than the previous one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, typescript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100