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.2.tar.gz (12.0 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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.2.tar.gz
Algorithm Hash digest
SHA256 850d576baaf9b36c38179c3b9fb4014870593dc4f4ca783e5d1a8a666d20317e
MD5 b744bc94491d58855d41605ce41a1416
BLAKE2b-256 d58a99e99fb4e140d304f9c227ad9581569e18e5925a40ba4ec19a93fead9280

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_localization_qa_guard-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36275742fa11ae6dec4e5a32b6be7354b034a44162138b32088653e7fa11092d
MD5 c7c3f083af22bf141abc2d9166c03138
BLAKE2b-256 287d68deb7d9a904f2b65886220a9b67b9507cd8694d6d533232dea52d5027f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for godot_localization_qa_guard-0.1.2-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