Tool for validating translations in October CMS. This tool will compare a translated language, using English as a reference, and tell you if anything is missing or has been removed.
In your project's root directory:
$ composer require krisawzm/oc-lang-compare
This installs an executable at vendor/bin/oc-lang-compare
$ oc-lang-compare compare:dir path/to/lang lang-code
$ oc-lang-compare compare:modules lang-code
This will automatically check the modules/backend/lang
, modules/cms/lang
and modules/system/lang
directories.
Validates the Norwegian language in modules/backend/lang:
$ vendor/bin/oc-lang-compare compare:dir modules/backend/lang nb-no
Note: All directories are relative to your working directory.
Note 2: Running from your project's root directory, you'll have to include the vendor/bin
path.
This tool runs independent from both October CMS and Laravel. This means you'll be able to validate plugin translations without installing the plugin in October beforehand. Simply clone the plugin repo and run the installation command.