Skip to content
Docs
Changelog

A test keeps hard-coded copy out of the native app

scripts/user-facing-strings.test.mjs fails on JSX text and on a string literal in a copy prop anywhere in apps/mobile/src. The app was already clean, so no screen changes.

Markdown

  • The native app's copy rule has a check. User-facing text goes through the i18n catalogs; for apps/mobile/src that was review only. scripts/user-facing-strings.test.mjs (in pnpm test) now reads app, features, design and platform and fails on JSX text and on a string literal given to a copy prop or option (title, label, placeholder, accessibilityLabel, any name ending in Title, Label, Text or Hint), also through a conditional or a ?? fallback. It found nothing to move in 220 files. A string that is the same in every language (an example URL, the name of an operating system) is an allowlist entry with a reason. The web stays review only for now. See conventions. (#232)
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.