Managed Localization Platforms vs. Local CI Automation (ADR)¶
As findfmt scales localization coverage across Tier 1 through Tier 4 languages (see
Multi-Language Localization Architecture & Phased Rollout Plan and
Open-Source Python AI Translation Benchmark & Architecture), this document
evaluates managed cloud localization platforms with native AI assistants (POEditor, Crowdin, and
Localazy) against findfmt’s self-hosted CLI pipeline (tools/i18n.py translate) and records our
Architecture Decision Record (ADR).
1. Platform Feature Evaluation¶
The table below compares POEditor, Crowdin, Localazy, and tools/i18n.py translate across the
technical requirements of findfmt’s GNU gettext catalog pipeline:
Capability / Requirement |
POEditor |
Crowdin |
Localazy |
Local CLI ( |
|---|---|---|---|---|
PO Import/Export & |
Native |
High-fidelity |
Native |
Direct |
Relative Source Location Comments ( |
Preserves reference comments, though export formatting can differ from |
Preserves |
Preserves |
Strictly enforces relative |
Python Placeholders ( |
Highlights |
Native |
Highlights placeholders and runs automated placeholder validation in review queues |
Pre-commit and runtime validator ( |
Rich Markup Preservation ( |
Treats Rich |
Supports custom QA regex rules, but AI assistants can still translate inside bracketed tags |
Requires custom glossary/exclusion rules to prevent translating |
Native Rich tag validator ( |
Multi-Form |
Supports gettext plural forms ( |
Full CLDR & GNU |
Native CLDR plural rules mapped to |
Parses catalog |
Built-in AI Translation Assistants |
Automated AI translation via OpenAI/DeepL/Google (consumes plan or BYOK credits) |
Crowdin AI Assistant with context harvesting, TM leverage, and BYOK LLM provider support |
Localazy AI & ShareTM automated pre-translation pipelines |
Built-in |
Continuous GitHub Synchronization |
Webhook and GitHub repo connector opening automated sync PRs or commits |
Official GitHub App and |
Official GitHub Action ( |
Runs natively in local dev ( |
1.1. Key Technical Findings¶
Rich Markup & CLI Flag Invariants: Managed platforms natively understand
%sand{name}placeholders when#, python-formator#, python-brace-formatflags are present, but none natively parse Rich console markup ([bold],[cyan],[/]) out of the box. In contrast,tools/i18n_validation.pyandtools/i18n_prompts.pyenforce exact parity for{brace}placeholders,%stokens, Rich markup tags, and--cli-flagsbefore anymsgstris written to disk.Header & Diff Hygiene: Cloud platforms regenerate
.pofiles on export using their own serializers, which frequently alters header ordering, line wrapping, or#:source comment formatting.findfmt’s pre-commit hooks (i18n-validateandcheck-no-absolute-locale-paths) require deterministicbabel/polibformatting with workspace-relative paths.
2. Cost, Privacy, and Open-Source Licensing Comparison¶
All three commercial platforms offer free plans for qualifying open-source projects, subject to vendor approval and usage caps:
Dimension |
POEditor Open Source Plan |
Crowdin for Open Source |
Localazy OSS Plan |
Local CLI ( |
|---|---|---|---|---|
Open-Source Eligibility |
Manual application per public OSI-licensed repository |
Manual application; requires active public OSI-licensed repo and attribution |
OSS application program or community tier credits |
Included in repository under MIT license; zero vendor approval required |
String / Word Capacity |
Up to 10,000 strings on standard OSS approval (renewable upon request) |
Unlimited strings and collaborators for approved non-commercial OSS projects |
Tiered source-string limits depending on OSS sponsorship level |
Unlimited strings, locales, and branches |
AI Translation Quotas |
Limited built-in machine translation character quota; requires BYOK for scale |
Requires BYOK API keys (OpenAI, Anthropic, Gemini, DeepL) for AI translation |
Automated MT/AI requires paid tier or consumed translation credits |
Supports free local inference ( |
Data Privacy & Air-Gap Safety |
Source strings and contributor metadata stored on vendor cloud |
Source strings and translation memory hosted in Crowdin cloud |
Source strings shared with Localazy cloud and optional ShareTM network |
100% local execution with |
Vendor Lock-In Risk |
Medium (review history, comments, and glossary live in POEditor database) |
Medium (TM, review votes, and QA rules live in Crowdin project state) |
Medium (workflow queues and review states live in Localazy cloud) |
Zero (all prompts, glossaries, validators, and |
3. Contributor Auditing & Community Review Workflows¶
As findfmt expands across 100+ locales, native-speaker community contributors need a clear path to audit,
correct, and approve AI-generated translations:
3.1. Managed Cloud Platform Workflow¶
Strengths: Non-technical translators can log into a web UI, filter by
fuzzyor unapproved strings, view side-by-side translation memory suggestions, vote on alternatives, and leave per-string comments without installing Git or Python.Drawbacks:
Introduces dual sources of truth (Git PRs vs. cloud platform state), creating merge conflicts when developers run
uv run python tools/i18n.py extractand update.pot/.pocatalogs in feature branches.Cloud exports can bypass local pre-commit checks until a sync PR fails in CI, requiring manual maintainer intervention to fix broken Rich tags or CLI flags.
3.2. Local Git + CI Auditing Workflow (findfmt Standard)¶
Strengths:
AI-generated translations produced by
tools/i18n.py translatecan be marked with the standard GNUgettextfuzzyflag (--mark-fuzzy) or reviewed directly as clean.podiffs in GitHub Pull Requests.Native speakers can edit
.pofiles directly in the GitHub Web Editor (github.dev), Poedit desktop, or any text editor and submit a standard Pull Request.Every contribution is automatically audited in CI by
uv run python tools/i18n.py validateandmsgfmt --check, guaranteeing zero broken placeholders, Rich tags, or plural forms.
4. Architecture Decision Record (ADR): Localization Pipeline¶
4.1. Context¶
findfmt maintains a concise, highly technical CLI catalog (~150 entries) containing Python brace
placeholders ({path}, {count}), printf tokens (%s), Rich terminal markup ([bold], [/]), and CLI
flags (--format, --hidden), alongside multi-language Sphinx documentation catalogs under
docs/source/locale/. We must choose between two primary localization architectures:
Option A (Local Open-Source CLI Automation + Git PRs): Use
tools/i18n.py(extract,translate,validate,compile,status) backed bypolib,babel, and deterministic LLM batch translation (tools/i18n_translate.py), with all review and auditing conducted via GitHub Pull Requests and CI gates.Option B (Managed Cloud Localization Platform with Bidirectional GitHub Sync): Adopt a hosted platform (Crowdin, POEditor, or Localazy) as the primary translation hub synchronized to GitHub via webhooks or GitHub Actions.
4.2. Decision¶
We select Option A: Fully local, open-source CLI automation via tools/i18n.py translate + Git Pull
Requests as findfmt’s authoritative localization architecture.
4.3. Rationale¶
Strict Structural Validation:
tools/i18n_validation.pyenforcesfindfmt-specific invariants (Rich[bold]/[/]markup parity,{brace}and%splaceholder sets,ngettextplural array counts acrossnplurals=1..6, and relative#:location paths) both during LLM generation and in pre-commit/CI.Single Source of Truth & Zero Lock-In: Keeping
.pottemplates,.pocatalogs, domain glossaries (tools/i18n_prompts.py), and validation logic inside the Git repository eliminates bidirectional sync conflicts and external SaaS dependencies.Negligible Cost & Offline Reproducibility: Translating the entire 150-message CLI catalog across 100 locales costs ~$0.35 via hosted APIs or $0.00 using local
Ollamamodels, with deterministicT = 0.0temperature and automatic fuzzy fallback.
4.4. Future Re-Evaluation Trigger (Optional Hybrid Overlay)¶
If community translation contributions from non-developer native speakers exceed 10+ active external
translators per release cycle or if managing Sphinx documentation .po reviews via GitHub PRs becomes a
bottleneck, findfmt may enable Crowdin for Open Source (the strongest managed candidate due to its full
nplurals=1..6 CLDR support and official GitHub Action) strictly as a downstream PR generator—where all
exported commits must still pass uv run python tools/i18n.py validate and pre-commit in CI before merging.
5. End-to-End AI Localization Runbook¶
The steps below cover the complete workflow for localizing an existing or newly added language catalog under Option A.
5.1. Configuring AI Backends¶
tools/i18n_translate.py uses Python’s standard-library urllib.request with zero external SDK dependencies.
Configure your preferred provider via environment variables:
Provider / Mode |
Required Environment Variables |
Example Invocation |
|---|---|---|
OpenAI (default) |
|
|
Google Gemini (OpenAI-compatible) |
|
|
Anthropic Claude |
|
|
Local Ollama (offline) |
None ( |
|
Direct AI Coding Agent Translation |
None (when working inside an offline AI coding assistant session) |
Populate untranslated |
5.2. Step-by-Step Catalog Translation Workflow¶
# Extract latest translatable strings into src/findfmt/locale/findfmt.pot
uv run python -m tools.i18n extract
# 2a. Initialize a brand-new locale catalog (e.g., pt_BR)
uv run python -m tools.i18n init pt_BR
# 2b. Or synchronize existing locale catalogs (e.g., de, fr, ja) with findfmt.pot
uv run python -m tools.i18n update
# Preview untranslated entry and batch counts without modifying files
uv run python -m tools.i18n translate de --dry-run
# Run batch AI translation (checkpoints progress after every 25-entry batch)
uv run python -m tools.i18n translate de --backend openai
# Validate placeholders ({name}, %s), Rich markup ([bold], [/]), POT sync, and completed-locale coverage
uv run python -m tools.i18n validate
# Compile .po catalogs into binary .mo catalogs
uv run python -m tools.i18n compile
# Or run the one-command sync pipeline (extract -> update -> fill en -> AI-translate COMPLETE_LOCALES -> compile)
uv run python -m tools.i18n sync --backend openai
5.3. Runtime Locale Conventions & Test Registration¶
When onboarding a new language <locale>, verify the following runtime fallbacks and test suites so localized
formatting works even on minimal container or CI hosts without OS locale packs installed:
Completed-Locale Gate (
tools/i18n_sync.py):Once
<locale>is 100% translated, add it toCOMPLETE_LOCALESintools/i18n_sync.pyso thei18n-catalog-checkpre-commit hook anduv run python -m tools.i18n syncenforce zero untranslated orfuzzyentries whenever new source strings are added.
Territory & Numeric Grouping Fallbacks (
src/findfmt/i18n.py):Add
<locale>to_LANG_TO_TERRITORYif its primary ISO territory code differs from<LOCALE>.upper()(for example,"ja": "JP","zh": "CN","hi": "IN").Add
<locale>’s decimal separator, thousands separator, and digit grouping to_REGIONAL_DEFAULTSinsrc/findfmt/i18n.py(or South Asian[3, 2, 0]grouping in_get_numeric_conventions()).
Timestamp Format Fallback (
src/findfmt/utils/strings.py):Add
<locale>’sstrftimefallback pattern tofallback_formatsinresolve_time_format().
Unit & Integration Tests (
tests/unit/test_i18n_localization.py):Include
<locale>intest_catalog_entries_placeholder_parity_and_runtime_formattingand add assertions for localized CLI--help, summary panels, and plural boundaries.