Changing language doesn't update calculations
- Dominant language
- TypeScript
- Stars
- 38
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
I have a form which calculates an activity based on a given age and then translates that into the selected language. The translation updates correctly when modifying the age, but it does not change language when using the language switcher. However if I update the age again the translation updates as expected.
Steps to reproduce the error
1. Upload this form: [translated-dynamic-text-without-output.xlsx](https://github.com/user-attachments/files/22085975/translated-dynamic-text-without-output.xlsx)
2. See that the note at the bottom of the form says “drawing” (in English)
3. Select “French” from the dropdown at the top of the form
4. See that the labels are automatically translated to French, but the note still says “drawing”
5. Change the “age”
6. Now the note is translated to “dessiner”
https://github.com/user-attachments/assets/dd1fb5dd-1c1b-44b3-9ecb-1d7ce78cf6a8
Ported from [the forum](https://forum.getodk.org/t/changing-language-doesnt-update-calculations/56520).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by opening translated-dynamic-text-without-output.xlsx and reproduce the language switch followed by an age change. The payload names no source file or test, so trace the web form's calculation and translation update path from the reproduction. Done means the calculated note changes language immediately when the language selector changes, without requiring an age edit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100