Skip to main content

CI-friendly localization QA for Godot CSV and PO translation files.

Project description

Godot Localization QA Guard

A CI-friendly localization QA checker for Godot CSV and PO translation files. It catches missing strings, duplicate keys, broken placeholders, UTF-8 BOM issues, fuzzy PO entries, unchanged target strings, missing project keys, and unused catalog keys.

This is intentionally safe to publish as a standalone tool: examples are generic and the functionality does not reveal private game systems.

Install

python -m pip install -e .

When published:

python -m pip install godot-localization-qa-guard

Quick Start

godot-l10n-guard C:\Projects\MyGame --translations translations --require fr,es
godot-l10n-guard . --csv assets\i18n\strings.csv --scan-scripts --scan-scenes
godot-l10n-guard . --po locale --format markdown --output docs\LOCALIZATION_QA.md
godot-l10n-guard . --format json --output localization-report.json

Run the sample:

godot-l10n-guard examples\tiny-godot-project --translations examples\tiny-godot-project\translations --scan-scripts --fail-on none

What It Checks

  • Godot CSV header starts with keys.
  • Required language columns exist.
  • Required target cells are not empty.
  • Duplicate CSV keys and PO msgid values.
  • PO fuzzy and untranslated entries.
  • Placeholder sets match across source and target text.
  • Target strings that are unchanged from source.
  • tr("KEY") and TranslationServer.translate("KEY") usage.
  • Uppercase key-like scene text values.
  • Missing and unused keys when scanning is enabled.

Documentation

Development

python -m pip install -e .
python -m unittest discover -s tests -v
godot-l10n-guard examples\tiny-godot-project --translations examples\tiny-godot-project\translations --scan-scripts --fail-on none

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

godot_localization_qa_guard-0.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

godot_localization_qa_guard-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file godot_localization_qa_guard-0.1.1.tar.gz.

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3de4391ef4ff13399dc4b8dd6fc6c59e00855c732a85b723715f688e8b33d9aa
MD5 e56db5ca19d1d0fba75f689998b4128b
BLAKE2b-256 cd2ac400a4505d5cf704bbf4850561e5fcb8916ad8aecfa0a79b994c88b955e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_localization_qa_guard-0.1.1.tar.gz:

Publisher: publish-localization-qa-guard.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file godot_localization_qa_guard-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 baee78dd142a12144e0d81373e45f5e6c55ab2702420ff3a99bde70ba13d1428
MD5 a5ae088453f61a09b169666655af69f9
BLAKE2b-256 fc4dcd0a0a42cf022825fe4f6830e9081b55cf317e53947caa511ac7c2049d82

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_localization_qa_guard-0.1.1-py3-none-any.whl:

Publisher: publish-localization-qa-guard.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page