supportpal / language-tools
A set of CLI tools to help analyse and maintain SupportPal language files.
Installs: 6 296
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.2.5
- sebastian/diff: ^3.0|^4.0
- symfony/console: ^4.4|^5.0
- symfony/finder: ^4.4|^5.0
Requires (Dev)
- phpstan/phpstan: ^0.12.88 || ^1.0.0
- phpunit/phpunit: ^8.5|^9.5
- supportpal/coding-standard: ^0.4.0
This package is auto-updated.
Last update: 2024-11-25 13:21:55 UTC
README
A set of CLI tools to help analyse and maintain SupportPal language files.
Usage
$ composer require --dev supportpal/language-tools
Compare Command
Compare your translation against the English translation files.
This will produce a diff for each file which differs from its English equivalent.
$ php vendor/bin/language-tools compare resources/lang/en/ resources/lang/es/
# Comparing resources/lang/en/ against resources/lang/es/
Sync Command
⚠️ Experimental ⚠️
Check the changes match what you expect.
Synchronise your translation with the English translation files.
This will add / remove translation strings, and also update the formatting of the file to match the English equivalent.
$ php vendor/bin/language-tools sync resources/lang/en/ resources/lang/es/
# Synchronising resources/lang/es/ with resources/lang/en/ ...