Translate
Workflow
- •Run the i18n diff to list missing keys.
- •Command:
cd play && npm run i18n:diff - •Single locale:
cd play && npm run i18n:diff -- <locale>
- •Command:
- •Open the reported locale files under
play/src/i18n/<locale>/. - •For each missing key:
- •Look at the
en-UStranslation first. If unsure, look at thefr-FRtranslation too - •If unsure, ask the user precisions before translating
- •Look at the
- •Re-run the diff command until it reports no missing translations.
Conventions
- •
en-USis the source of truth. Use it to find the canonical string and structure. - •Preserve formatting, placeholders, and variable names exactly (e.g.,
{name},{count}). - •Keep file formatting consistent with the existing module (4 spaces, newline at EOF).