Skip to content
Docs
Changelog

A test reads every locale catalog for another language's words

scripts/catalog-language.test.mjs fails when a catalog string contains a word of one of the other three languages, or when a translation repeats the English sentence. The 8,236 strings shipped today pass.

Markdown

  • A locale catalog holds its own language. Key parity cannot tell whether de.ts holds German: a key copied over with its English text passes. scripts/catalog-language.test.mjs (in pnpm test) reads the web, mobile, error and email catalogs and the push texts in English, German, French and Brazilian Portuguese. It fails on a word or letter that belongs to one of the other three languages, and on a translated string of three or more words that is the English string word for word. It found nothing to fix in 8,236 strings. It works from short word lists, so a one-word label left untranslated still needs a reviewer. See conventions. (#241)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.