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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09f21b1a6a5ea1c104f050f6e25d5f804acf86b7ddb755b1eb61ae78e7215b99
MD5 ce76b8b9811a96cf89b645321ff440b8
BLAKE2b-256 2798d100d0531100f991b70ca97a80bb66031181ff840d0dc2fe4e8d5352826f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for godot_localization_qa_guard-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1674a5dd009ea8c1343ef07e66d94a42cbd41f658d60d7bdf140771ab34008a8
MD5 2e76bf46355d6b83db7244ccec4e352a
BLAKE2b-256 a11d01931a667b0386fcc397b80c5b3f8d53d59a2013c414b166c35897af4066

See more details on using hashes here.

Provenance

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