Words change independently of state
A translator may change Ready to Ready for review, or two languages may use similar wording for different stages. If business logic compares visible text, a copy edit can change behavior. Treat translations as messages associated with stable meaning.
What to do next
- 01
Define stable message mappings
Map each recognized remote and local state to an application code and translation key. Keep distinctions such as completed generation, delivered asset and approved review visible in the model even if a language needs longer explanatory wording.
- 02
Keep logic on typed values
Use state codes, revision checks and explicit booleans for actions and transitions. Apply localized formatting to timestamps and credits only when rendering, preserving the exact stored values for requests and accounting.
- 03
Test locale switching mid-task
Change the interface language while a task runs and after it completes. Verify action availability, selected output, receipts and persisted state remain identical while labels and formatting update appropriately.
A concrete example
Illustrative example: the UI switches from English to Chinese during saving. The label changes, but the stored state code and disabled download action do not. After recognized completion, both locales expose the same verified result.
Before you call it ready
- Translated strings never drive transitions.
- Locale changes preserve task identity.
- Numeric formatting does not alter stored values.
When to stop or choose another method
Stop storing localized labels as authoritative task states or parsing formatted display numbers back into API request fields.
