Skip to main content

🌍 L10n Audit Toolkit (v1.2.5)

Version Architecture Tests Release

📚 Documentation: 👉 https://wael-daaboul.github.io/L10n-Audit-Toolkit/

pipx install l10n-audit-toolkit

The L10n Audit Toolkit is a professional-grade, project-agnostic localization QA and translation audit engine. Designed for modern engineering teams, it provides automated linguistic validation, semantic risk assessment, and smart auto-fixing for complex, multi-framework applications.


🏗️ Version 1.2.5: Universal Architecture

Starting with v1.2.5, the toolkit has transitioned to a Universal, Data-Driven Architecture. The core engine is now completely decoupled from specific project domains or frameworks.

[!IMPORTANT] All audit logic, terminology rules, and entity protections are now dynamically driven by your local configuration. This means the tool works flawlessly for medical apps, banking platforms, ridesharing services, or games without any code changes.


🚀 Quick Start & Configuration

The toolkit uses a Self-Documenting Configuration system with vertical, bilingual (Arabic/English) annotations to eliminate any ambiguity.

1. Initialize Your Workspace

Run the following command in your project root to generate the necessary directory structure:

l10n-audit init

2. Configure Your Audit

Copy the provided template and customize it to your project's needs:

cp config.json.example config.json

3. Namespace Overview

Your config.json is organized into four logical namespaces:

Namespace Responsibility Primary Settings
project_detection Framework discovery auto_detect, force_profile
audit_rules Linguistic precision role_identifiers, latin_whitelist, apply_safe_fixes
ai_review Semantic intelligence enabled, provider, model, api_key_env
output Results management results_dir, retention_mode

💎 Core Features

🧠 Smart AI Semantic Review

V1.2.5 integrates LiteLLM to provide deep semantic validation of identified issues. This eliminates false positives by understanding the intent and context of your translations.

  • Provider Agnostic: Supports OpenAI, DeepSeek, Anthropic, and local models.
  • Cost Optimization: Use low-cost 'mini' models (e.g., gpt-4o-mini, deepseek-chat) and tune the short_label_threshold to skip trivial labels like "OK" or "Save".
  • Secure Integration: Never hardcode keys; use api_key_env to point to your system's environment variables.

🛠️ The Smart Auto-Fixer (--apply-safe-fixes)

Standardize your terminology automatically. If enabled, the tool will read glossary.json and replace forbidden_terms with their approved equivalents directly in your locale files.

  • Whole-Word Matching: Prevents accidental substring replacements.
  • RTL/LTR Aware: Maintains script integrity during replacement.

📁 Results Archiving & Retention

Maintain full audit traceability across your project's history.

  • overwrite: Default mode. Replaces the last audit's Results directory.
  • archive: Moves previous results to a timestamped _archives/ folder before starting a new run. Perfect for CI/CD audit trails.

⌨️ CLI Command Reference

Execute audits with precision using the standardized CLI interface.

Command Description
l10n-audit --version Verify installation (should show 1.2.5)
l10n-audit run --stage fast Perform terminology and QC checks only
l10n-audit run --stage full Run the complete audit suite (Grammar, AI, Terminology, QC)
l10n-audit run --apply-safe-fixes Audit and automatically apply terminology corrections
l10n-audit doctor Diagnose workspace and framework discovery issues

📝 Technical Notes for Power Users

  • Brand Protection: Use the latin_whitelist in audit_rules to prevent the engine from flagging your brand name or technical terms (e.g., "DeepSeek", "API") as 'mixed-script' errors in Arabic text.
  • Context Preservation: Defining role_identifiers (e.g., ['admin', 'captain']) ensures the AI and heuristic engines understand your app's specific persona contexts.
  • Performance: Batch sizes can be adjusted via ai_review.batch_size (default: 20) to balance between execution speed and API rate limits.

🤝 Contributing & Support

For issues, architectural questions, or feature requests, please refer to the internal documentation or contact the Advanced Agentic Coding team.


Generated by Antigravity AI for L10n-Audit v1.2.5

Metadata

Release files for l10n-audit-toolkit 1.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for l10n-audit-toolkit 1.2.9
File Size Uploaded
l10n_audit_toolkit-1.2.9.tar.gz 110.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for l10n-audit-toolkit 1.2.9
File Interpreter ABI Platform
l10n_audit_toolkit-1.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 243.0 kB

Release files / l10n_audit_toolkit-1.2.9.tar.gz

Download URL l10n_audit_toolkit-1.2.9.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e2a24649c17c31775c11a9c5b3462e574b557a65341764203f1c7c2905fab4
BLAKE2b-256 checksum
How to use checksums
362c7386f7eb4f7cb91215032a0427a72adeb5adeae871c4ec60eda877e66b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / l10n_audit_toolkit-1.2.9-py3-none-any.whl

Download URL l10n_audit_toolkit-1.2.9-py3-none-any.whl
Size 132.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1a0b2deb9638e08b5e38d7bb52290dc7fa27c80f29ac3c9e205d705e51e971d
BLAKE2b-256 checksum
How to use checksums
4cde0a89a6045f17f35d56d1ee21c2397b421cd8569cc9a3296d45619e2f9fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.2.9 This release

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.8

1 release file

1.0.6

1 release file

1.0.5

2 release files

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