{"id":29853563,"url":"https://github.com/move-elevator/composer-translation-validator","last_synced_at":"2026-01-11T08:42:25.714Z","repository":{"id":295577929,"uuid":"990531132","full_name":"move-elevator/composer-translation-validator","owner":"move-elevator","description":"🌐 Composer plugin that validates translation files in your project.","archived":false,"fork":false,"pushed_at":"2025-12-25T04:43:51.000Z","size":1985,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T08:09:52.514Z","etag":null,"topics":["translation","translation-validation","xliff-validation","yaml-validator"],"latest_commit_sha":null,"homepage":"http://move-elevator.de/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/move-elevator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-26T08:56:15.000Z","updated_at":"2025-12-25T04:43:53.000Z","dependencies_parsed_at":"2025-12-08T20:05:01.590Z","dependency_job_id":null,"html_url":"https://github.com/move-elevator/composer-translation-validator","commit_stats":null,"previous_names":["move-elevator/composer-translation-validator"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/move-elevator/composer-translation-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/move-elevator%2Fcomposer-translation-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/move-elevator%2Fcomposer-translation-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/move-elevator%2Fcomposer-translation-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/move-elevator%2Fcomposer-translation-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/move-elevator","download_url":"https://codeload.github.com/move-elevator/composer-translation-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/move-elevator%2Fcomposer-translation-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28298861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["translation","translation-validation","xliff-validation","yaml-validator"],"created_at":"2025-07-29T22:01:43.220Z","updated_at":"2026-01-11T08:42:25.708Z","avatar_url":"https://github.com/move-elevator.png","language":"PHP","funding_links":[],"categories":["Plugins"],"sub_categories":["Support"],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Composer Translation Validator\n\n[![Coverage](https://img.shields.io/coverallsCoverage/github/move-elevator/composer-translation-validator?logo=coveralls)](https://coveralls.io/github/move-elevator/composer-translation-validator)\n[![CGL](https://img.shields.io/github/actions/workflow/status/move-elevator/composer-translation-validator/cgl.yml?label=cgl\u0026logo=github)](https://github.com/move-elevator/composer-translation-validator/actions/workflows/cgl.yml)\n[![Tests](https://img.shields.io/github/actions/workflow/status/move-elevator/composer-translation-validator/tests.yml?label=tests\u0026logo=github)](https://github.com/move-elevator/composer-translation-validator/actions/workflows/tests.yml)\n[![Supported PHP Versions](https://img.shields.io/packagist/dependency-v/move-elevator/composer-translation-validator/php?logo=php)](https://packagist.org/packages/move-elevator/composer-translation-validator)\n\n\u003c/div\u003e\n\nA Composer plugin that validates translation files in your project.\nProvides a command `validate-translations` to check for translations mismatches, duplicates, schema validation and more.\nSupports XLIFF, YAML, JSON and PHP translation files.\n\n## ✨ Features\n\n* Autodetect coherent language files\n* Supports various [translation file formats](#supported-file-formats)\n* Provides multiple [validators](#translation-validators)\n* Configurable via separate [configuration files](docs/config-file.md)\n\n## 🔥 Installation\n\n[![Packagist](https://img.shields.io/packagist/v/move-elevator/composer-translation-validator?label=version\u0026logo=packagist)](https://packagist.org/packages/move-elevator/composer-translation-validator)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/move-elevator/composer-translation-validator?color=brightgreen)](https://packagist.org/packages/move-elevator/composer-translation-validator)\n\n\n```bash\ncomposer require --dev move-elevator/composer-translation-validator\n```\n\n## 📊 Usage\n\nValidate your translation files by running the command:\n\n```bash\ncomposer validate-translations ./translations\n```\n\n![console.png](docs/images/console.png)\n\nThe command `validate-translations` can be used to validate translation files in your project. It will automatically detect the translation files based on the [supported formats](#supported-file-formats) and run the configured [validators]((#translation-validators)). See the [console command documentation](docs/console-command.md) for more details.\n\n## 📝 Documentation\n\n### Supported File Formats\n\nTranslations will be detected and grouped by the following file formats (regarding the associated frameworks):\n\n| Format | Frameworks | Example files                          |\n|--------|------------|----------------------------------------|\n| [XLIFF](docs/file-detector.md#xliff-xml-localization-interchange-file-format) | TYPO3 CMS | `locallang.xlf`, `de.locallang.xlf`    |\n| [YAML](docs/file-detector.md#yaml-yaml-aint-markup-language) | Symfony | `messages.en.yaml`, `messages.de.yaml` |\n| [JSON](docs/file-detector.md#json-javascript-object-notation) | Laravel, Symfony | `messages.en.json`, `messages.de.json` |\n| [PHP](docs/file-detector.md#php-arrays) | Laravel, Symfony | `en/messages.php`, `messages.en.php`   |\n\nSee detailed [file format and file detection documentation](docs/file-detector.md) with examples.\n\n### Translation Validators\n\nThe following translation validators are available (and enabled by default):\n\n| Validator | Description |\n|-----------|-------------|\n| [DuplicateKeysValidator](docs/validators.md#duplicatekeysvalidator) | Catches duplicate keys within files |\n| [DuplicateValuesValidator](docs/validators.md#duplicatevaluesvalidator) | Finds identical translation values |\n| [EmptyValuesValidator](docs/validators.md#emptyvaluesvalidator) | Detects empty or whitespace-only values |\n| [EncodingValidator](docs/validators.md#encodingvalidator) | Validates UTF-8 encoding and Unicode issues |\n| [HtmlTagValidator](docs/validators.md#htmltagvalidator) | Ensures HTML tag consistency across languages |\n| [KeyCountValidator](docs/validators.md#keycountvalidator) | Warns when files exceed a configurable key count threshold |\n| [KeyDepthValidator](docs/validators.md#keydepthvalidator) | Warns when translation keys have excessive nesting depth |\n| [KeyNamingConventionValidator](docs/validators.md#keynamingconventionvalidator) | Enforces key naming patterns (requires config) |\n| [MismatchValidator](docs/validators.md#mismatchvalidator) | Finds missing translations between files |\n| [PlaceholderConsistencyValidator](docs/validators.md#placeholderconsistencyvalidator) | Validates placeholder patterns |\n| [XliffSchemaValidator](docs/validators.md#xliffschemavalidator) | Validates XLIFF against XML schemas |\n\nView detailed [validator documentation](docs/validators.md) with examples.\n\n## 🧑‍💻 Contributing\n\nPlease have a look at [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\n## ⭐ License\n\nThis project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmove-elevator%2Fcomposer-translation-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmove-elevator%2Fcomposer-translation-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmove-elevator%2Fcomposer-translation-validator/lists"}