Scan your whole stack
Are you using localelens?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.1
localelens was last scanned on 28 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.1 LATEST | 28 Nov 2026 | No rules fired |
Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Every key. Every locale. No network.
Offline localization QA for JSON and Flutter ARB resources.
v0.1.1 · Python 3.10+ · zero runtime dependencies · MIT
An English settings screen has a Cancel button. Its Arabic resource has the same key, but the value is empty. A key-count comparison would miss the problem.
| Key | English (en) | العربية (ar) |
|---|---|---|
| welcome | Hello {name}! | أهلاً {name}! |
| settings.save | Save | حفظ |
| settings.cancel | Cancel | (empty) |
These are examples from the included resources: English and Arabic.
From the source directory, compare the files:
python -m localelens fixtures/en.arb fixtures/ar.arb --format markdown
The actual example result:
1 error · 0 warnings
| Severity | Code | JSON pointer | Detail |
|---|---|---|---|
| error | blank | /settings/cancel |
nonblank source translated to blank string |
The command exits with code 1. Fix the translation or review the reported key, then rerun the comparison. A supplied clean Arabic fixture demonstrates a passing report.
Compare a reference locale with a translated locale and get a stable, actionable report. No API keys, no online service, no modification of translation files.
| Check | Result |
|---|---|
| Missing keys or array positions | Error |
| Extra keys or array positions | Warning |
| Different JSON value types | Error |
| Nonblank reference translated as blank | Error |
| Named or positional placeholder mismatch | Error |
Latin-only text in an Arabic locale (--rtl) |
Warning |
Additional replacement characters or suspicious ASCII ??? runs (--check-unicode) |
Warning |
Deep paths are expressed as JSON Pointers, so keys containing / or ~ stay unambiguous. When an entire object is missing, one issue identifies the missing subtree. ARB metadata keys starting with @ are ignored at the root.
Python 3.10+ is the only runtime prerequisite. From the source directory:
python -m localelens fixtures/en.arb fixtures/ar.arb
python -m localelens fixtures/en.arb fixtures/ar_clean.arb --format markdown --rtl
Install locally if you prefer a standalone command (requires setuptools for building):
python -m pip install .
localelens fixtures/en.arb fixtures/ar.arb --format markdown
localelens SOURCE TARGET [--format json|markdown] [--rtl]
[--skip-placeholders] [--check-unicode] [--fail-on error|warning|never]
json is the default output format. Reports are printed to stdout so they can be redirected to an artifact. Input errors go to stderr. Reports explicitly use UTF-8 output, even if the inherited terminal encoding is not UTF-8. Invalid UTF-8, unpaired Unicode surrogates and nonfinite numbers are rejected. The comparison does not modify either resource.
| Exit code | Meaning |
|---|---|
| 0 | Checks passed (or selected failure threshold not reached) |
| 1 | Report contains issues meeting the selected threshold |
| 2 | Invalid arguments, JSON, unsupported resource type, or file read error |
For stricter CI, pass --fail-on warning. For reporting without fail-on-issue behavior, pass --fail-on never; invalid input still exits 2.
{
"summary": {"errors": 1, "warnings": 0},
"issues": [
{"severity": "error", "code": "blank", "path": "/settings/cancel", "detail": "nonblank source translated to blank string"}
]
}
Checks recognize named placeholders ({name}, {{name}}), common ICU argument starts such as {count, plural, ...}, and basic printf %s, %d, %i, %f with optional positional indexes (%2$s). Named placeholder presence rather than raw occurrence counts is compared so locale-specific plural variants do not trigger spurious failures. Complex ICU quoting, printf width/precision, nested custom syntaxes, plural-category completeness and translation meaning are outside this utility's scope; use --skip-placeholders if the project uses unsupported conventions. --rtl only flags Latin-only strings for human review, not incorrect layout or linguistic quality.
Use --check-unicode to flag newly introduced U+FFFD replacement characters and additional runs of at least three ASCII question marks. These patterns may indicate corruption; they are only warnings and cannot prove which original characters were lost. Ordinary Arabic punctuation ؟ is unaffected. To fail CI on these warnings, add --fail-on warning.
python -m unittest discover -s tests -v
The included fixtures are synthetic English and Arabic resources. Inputs must have valid UTF-8 JSON object roots and be at most 10 MiB each. Duplicate keys and nonstandard JSON constants are rejected. Tests exercise the real CLI, structural checks, placeholder handling, ARB metadata, determinism and exit codes. CI is configured for Python 3.10/3.12 on Linux and Windows; the platforms are verified by the workflow when it runs.
MIT. See LICENSE and third-party notices.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.