Skip to main content

strings-lint

Lint the translations already in your app repo. strings-lint compares every language with its source and finds the mistakes that compile fine and then show up on a user's screen:

  • Placeholders missing, added, or swapped: %1$@, %lld, {count}, {{name}}, <b>
  • Plural forms a language needs by CLDR: Polish one few many other, Japanese only other
  • Repeated arguments like %lld of %lld that a translator cannot reorder safely
  • Empty, missing and stale keys
  • Android apostrophes that break the build, invalid XML
  • App Store / Google Play texts over the limit, keywords counted in UTF-8 bytes, wasted keywords

It reads your files as they are. Nothing is uploaded, nothing is changed.

$ strings-lint ios android fastlane/metadata/ja
ios/Localizable.xcstrings
  warning en       positional         Hello, %@! You completed %lld of %lld habits today.: repeated unpositioned arguments; use %1$lld … %2$lld so translations can reorder them
  error   pl       plural             %lld days left: missing plural forms: few, many (needs one, few, many, other)
  error   pl       empty              Save: empty translation
  error   ja       placeholder        Hello, %@! You completed %lld of %lld habits today.: order %lld %@ %lld instead of %@ %lld %lld; use positional specifiers (%1$@) to reorder
ios/Legacy/de.lproj/Localizable.strings
  error   de       placeholder        greeting: missing %ld
  warning de       stale              old: not in the source any more
ios/Legacy/de.lproj/Localizable.stringsdict
  warning de       plural             streak: source has a special text for zero, translation does not
android/app/src/main/res/values-fr/strings.xml
  error   fr       android-apostrophe greeting: unescaped ' breaks the build: write \' or wrap the text in double quotes
android/app/src/main/res/values-pt-rBR/strings.xml
  error   pt-BR    plural             habits_done: missing plural forms: many (needs one, many, other)
fastlane/metadata/ja/keywords.txt
  error   ja       length             keywords.txt: 133 bytes, limit 100
4 catalog(s) checked: 7 error(s), 3 warning(s)

Install

Not on PyPI yet. Until the first release, install from a checkout:

pipx install .                 # or: uv tool install .
strings-lint path/to/your/app

Requires Python 3.10+. The only dependency is Babel for CLDR plural rules.

Supported formats

Format Source Translations
Xcode String Catalog *.xcstrings (sourceLanguage) localizations in the same file
iOS .strings / .stringsdict en.lproj/, Base.lproj/ <locale>.lproj/
Android resources res/values/*.xml res/values-<qualifier>/ (values-pt-rBR, values-b+zh+Hans)
Flutter ARB app_en.arb (@@locale) app_<locale>.arb, ICU plurals incl. =0
i18next JSON locales/en/*.json or locales/en.json sibling locale folders or files, _one/_other
CSV column en next to key one column per locale
fastlane metadata metadata/<locale>/*.txt, metadata/android/<locale>/*.txt every locale is checked against the store limits

The source locale is detected per file (sourceLanguage, @@locale, en). Use --source de if your source is another language.

Options

strings-lint [PATH ...]            default: current directory
  --format text|json|github        github prints workflow annotations
  --ignore missing,stale           skip rules (see --list-rules)
  --strict                         exit 1 on warnings too
  --source LOCALE                  source locale if not detected
  --list-rules

Exit code 1 if there is any error (or any warning with --strict).

GitHub Actions

- uses: actions/setup-python@v5
  with: { python-version: "3.12" }
- run: pipx run strings-lint --format github --ignore missing   # once published on PyPI

Rules

Rule Severity What it means
placeholder error placeholders differ from the source; a missing number in one/zero/=0 forms is only a warning where the form means exactly one value
plural error CLDR forms missing (warning: forms the language never uses, or the source's special zero/=0 text is missing)
empty error translation is empty
android-apostrophe, xml error Android resource would not build
length error App Store / Google Play limit exceeded
positional warning source repeats unpositioned arguments (%d … %d)
missing, stale warning key not translated / no longer in the source
keywords, subtitle warning App Store keyword field wastes bytes or repeats itself

Store limits as documented by Apple and Google, checked September 2026: app name and subtitle 30 characters, keywords 100 bytes, promotional text 170, description and What's New 4,000; Google Play title 30, short description 80, full description 4,000, release notes 500 (Play Console form).

Not supported yet

Device variations and substitutions in .xcstrings, .stringsdict entries with several variables, ICU select, Android <string-array>, XLIFF and gettext. They are reported as notes and skipped.

Why this exists

We run a localization service for indie apps and kept finding the same bugs in apps that had been translated by copy and paste. These are the checks we run on every delivery, as a free tool.

License

MIT

Metadata

Release files for strings-lint 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strings-lint 0.1.0
File Size Uploaded Provenance Actions
strings_lint-0.1.0.tar.gz 27.7 kB With provenance Details for strings_lint-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for strings-lint 0.1.0
File Interpreter ABI Platform Actions
strings_lint-0.1.0-py3-none-any.whl Python 3 none any Details for strings_lint-0.1.0-py3-none-any.whl

Total release size: 48.4 kB

Release files / strings_lint-0.1.0.tar.gz

Download URL strings_lint-0.1.0.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a40a4113e3d44ed90b2c6b22b1bf3e791a0e49dd1d3965126991cb53e0cc2104
BLAKE2b-256 checksum
How to use checksums
43a3b1bb956ba69c0747e6c022e1c502e3d655cc546ff25b223006f16568474d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / strings_lint-0.1.0-py3-none-any.whl

Download URL strings_lint-0.1.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d671b5df61296111d6908badd1c8fdda8f52def450ad7bc33bfe98a75840d620
BLAKE2b-256 checksum
How to use checksums
bcc8e204a0ce47343d83c44fad56276d3b2d4b8c21f2170cbf4e063e17a94daf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Security for strings-lint 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for strings_lint-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page