Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

localelens

Latest version: v0.1.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: eee42
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

localelens was last scanned on 28 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 28 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 28 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

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.

README

The publisher’s own README, as collected from the registry.

LocaleLens

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

GitHub stars Offline 11 tests passed locally CI MIT


The missing translation

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.

What gets checked

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.

Run it locally

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

CLI reference

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.

JSON report from the example
{
  "summary": {"errors": 1, "warnings": 0},
  "issues": [
    {"severity": "error", "code": "blank", "path": "/settings/cancel", "detail": "nonblank source translated to blank string"}
  ]
}
Placeholder scope

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.

Optional Unicode review

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.

Reliability and tests

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.

License

MIT. See LICENSE and third-party notices.

OX Radar and Response Center

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.

Where it’s listed

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).

  • pypi-releases localelens

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229