Skip to main content

strings-lint

PyPI CI

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
  warning de       missing            tap_to_continue [mac]: not translated
  warning de       placeholder        %#@days@ and %#@hours@ left [hours]: [one] missing %arg
  error   de       placeholder        %#@days@ and %#@hours@ left [hours]: [other] missing %arg
  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
  warning fr       missing            pages[0]: not translated
  warning fr       missing            pages[2]: not translated
android/app/src/main/res/values-pt-rBR/strings.xml
  error   pt-BR    plural             habits_done: missing plural forms: many (needs one, many, other)
  warning pt-BR    missing            pages[2]: not translated
android/app/src/main/res/values-b+zh+Hans/strings.xml
  warning zh-Hans  missing            pages[0]: not translated
  warning zh-Hans  missing            pages[2]: not translated
fastlane/metadata/ja/keywords.txt
  error   ja       length             keywords.txt: 133 bytes, limit 100
4 catalog(s) checked: 8 error(s), 10 warning(s)

Install

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

Or run it once without installing: uvx strings-lint / pipx run strings-lint.

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

Supported formats

Format Source Translations
Xcode String Catalog *.xcstrings (sourceLanguage), device variants as key [mac], substitutions as key [days] localizations in the same file
iOS .strings / .stringsdict en.lproj/, Base.lproj/ <locale>.lproj/
Android resources res/values/*.xml, <string-array> items as name[0] 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

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

.stringsdict entries with several variables, nested variations in .xcstrings (plural inside a device variant is fine, device inside plural is not), ICU select, 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.

The service is l10n.lowest.digital (paid, per order): it translates your strings and store texts into up to 15 languages and runs these checks on the result. The linter works without it.

License

MIT

Metadata

Release files for strings-lint 0.2.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.2.0
File Size Uploaded Provenance Actions
strings_lint-0.2.0.tar.gz 30.3 kB With provenance Details for strings_lint-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 52.0 kB

Release files / strings_lint-0.2.0.tar.gz

Download URL strings_lint-0.2.0.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1049af090fabb6614fc68097b4cc41008ed83e1c010c66e85b5a3db1eda39a39
BLAKE2b-256 checksum
How to use checksums
739d6f643e041e84d84a7e3c51db438e21d888c059ab0f3e76ac5c25c2b2bfd9
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 27, 2026.

Transparency log

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

Download URL strings_lint-0.2.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
705b3b21023785f15dc3602958da5cb8895963118403399535e29609e5a7bcab
BLAKE2b-256 checksum
How to use checksums
f9d0dbbca21501102ec461e3187f8b9815b15d7fe4d5db26a9032a67fcfd3f37
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 27, 2026.

Transparency log

Security for strings-lint 0.2.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.2.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 27, 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.2.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