Skip to main content

Localize Anything

Localize Anything logo

The localization expertise layer for Coding Agents.

English · 简体中文

Localize Anything gives Coding Agents a clear, reviewable workflow for real application repositories:

scan
→ glossary bootstrap
→ Coding Agent localization
→ project-native build/test
→ check
→ independent review
→ human confirmation
→ report

It does not replace the Coding Agent, project build system, Git, or human product judgment. It owns scope, Project Memory, the Glossary, deterministic checks, independent review, and a small set of high-risk confirmations.

Current Implementation

The repository has one public CLI: localize. Its default path contains only five commands:

localize scan
localize glossary bootstrap
localize check
localize review
localize report

The old localize-anything platform CLI, Provider, Workbench, readiness, workflow, signoff, Knowledge Pack, generation/delivery orchestration, and their protocols have been removed. A missing format handler is handled with project-native Coding Agent work; it never triggers an automatic fallback to the old platform.

The core currently provides:

  • Git-shareable Project Memory;
  • one product-concept-centered glossary.json;
  • conservative import of confirmed legacy terms, TM, style, and decisions;
  • scan and structural checks for JSON, YAML/TOML, Android XML, Apple .strings and .xcstrings, PO/POT, and XLIFF;
  • placeholder, key, markup, Android escape/CDATA, and locked-Glossary checks;
  • a self-contained review packet for a fresh Agent context;
  • a finding-linked human confirmation gate;
  • concise JSON and Markdown reports.

Markdown/HTML, CSV/TSV/XLSX, Word OpenXML, subtitle, and Wesnoth handlers remain as limited Python compatibility capabilities. They are not a default CLI fallback.

Standard and Release depth

  • Standard is for routine locale additions and copy updates: scope, Glossary, Agent implementation, deterministic checks, independent review, and high-risk confirmations.
  • Release adds page screenshots, page-level review, project-native build/test, locale switch/persistence/detection/fallback checks, a clean Git diff, and release evidence.

Make the Skill available to your Coding Agent

For Codex, expose skills/localize-anything/ as an available Skill (or copy it to your Codex skills directory), then ask:

Use Localize Anything to add Russian support to this project.

For Claude Code, place the same directory under .claude/skills/localize-anything/ with SKILL.md and references/, then use the same request. The Skill guides the Agent; the Agent still owns code, resources, project-native build/test, and Git.

Format boundaries

The default core covers JSON, YAML/TOML, Android XML, Apple .strings and .xcstrings, PO/POT, and XLIFF. Markdown/HTML, CSV/TSV/XLSX, Word, SRT/WebVTT, and Wesnoth are five restricted compatibility Adapter directions. They require explicit invocation, provide only their declared mechanical parsing/rebuild capabilities, never auto-fallback, and do not imply complete product support.

Install

Python 3.11+ is required:

git clone https://github.com/xueyang-dev/localize-anything.git
cd localize-anything
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[yaml]"

Use

Scan a project. Without declared source files, scan only inventories recognized resources:

localize scan /path/to/project

Declare a localization task:

localize scan /path/to/project \
  --source-locale en \
  --target-locale ru \
  --source locales/en.json

Bootstrap the canonical Glossary:

localize glossary bootstrap /path/to/project

The Coding Agent then edits application code and target-locale resources and runs the project's own verification, for example:

npm test
npm run build
git diff

Localize Anything does not wrap or replace those commands. After the engineering changes:

localize check /path/to/project \
  --target locales/ru.json

localize review /path/to/project \
  --target locales/ru.json

Give .localize-anything/review-packet.json to a fresh Agent context that did not generate the translation. The review result has this shape:

{
  "reviewer": "independent-agent",
  "findings": [
    {
      "id": "navigation.share",
      "severity": "high",
      "status": "needs_human_confirmation",
      "note": "The product action needs an official wording decision."
    }
  ]
}

Import the review and build the report:

localize review /path/to/project \
  --target locales/ru.json \
  --findings review.json

localize report /path/to/project

Only an open needs_human_confirmation finding can receive a human decision:

localize report /path/to/project --confirm confirmations.json

Example confirmation file:

{
  "confirmations": [
    {
      "finding_id": "navigation.share",
      "decision": "Use “Поделиться”",
      "note": "Confirmed by the product owner."
    }
  ]
}

All core state lives under .localize-anything/ in the target project.

Responsibility Boundary

Role Responsibility
Localize Anything Skill Scope, Glossary, Project Memory, workflow, independent review, risk summary
localize CLI Scan, structural checks, review packet, finding/confirmation constraint, report
Coding Agent i18n architecture, code/resources, locale behavior, fallback, build/test, screenshots, Git
User Product meaning, brands, official terminology, high-risk ambiguity, release judgment

Deterministic checks do not prove natural or semantically correct translation, and independent Agent review is not human release approval. ready means only that core checks, review, and confirmations for the declared scope are complete. It does not replace project-native build/test, screenshots, or Git review.

Development Validation

python -m unittest discover -s tests -p 'test_*.py'
python -m compileall -q runtime tests

Protocol and adapter manifests use dependency-free repository validators:

from pathlib import Path
from runtime.localize_anything.contracts import validate_adapter_tree
from runtime.localize_anything.schema_validation import validate_protocol_tree

assert validate_protocol_tree(Path("protocol"))["status"] == "pass"
assert validate_adapter_tree(Path("adapters"))["status"] == "pass"

Documentation

The v0.4 platform design remains only in the Legacy Architecture Snapshot and Git history.

Non-Goals

Localize Anything is not:

  • a translation model or Provider platform;
  • an enterprise TMS;
  • a general multi-Agent orchestration framework;
  • a Workbench or release-governance system;
  • a replacement for Git, CI, or project build tools;
  • automated certification of “zero source-language characters” or professional translation quality.

License

MIT

Metadata

Release files for localize-anything 0.5.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 localize-anything 0.5.0
File Size Uploaded Provenance Actions
localize_anything-0.5.0.tar.gz 108.6 kB Without provenance Details for localize_anything-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for localize-anything 0.5.0
File Interpreter ABI Platform Actions
localize_anything-0.5.0-py3-none-any.whl Python 3 none any Details for localize_anything-0.5.0-py3-none-any.whl

Total release size: 189.4 kB

Release files / localize_anything-0.5.0.tar.gz

Download URL localize_anything-0.5.0.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
479cf7e6fa84381683c745a087ed786006a82904575e36c334b3d7315ace9940
BLAKE2b-256 checksum
How to use checksums
fb9448dd8e43e4f235b1cea4d5fd1324c9c6b4222efb9ee1eca219f385d2e55a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Release files / localize_anything-0.5.0-py3-none-any.whl

Download URL localize_anything-0.5.0-py3-none-any.whl
Size 80.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1d84d4f23f0ae9280897ba57d32937ad6dfda20c794a34fc0d5c5d6ef5ba22f
BLAKE2b-256 checksum
How to use checksums
2644f4def96adf771575481fe945e24b435c8805060860ce5a1fd260bda5c2be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Security for localize-anything 0.5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.5.0 This release

2 release files No 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