supportpal/language-tools

A set of CLI tools to help analyse and maintain SupportPal language files.

v0.2.3 2023-08-23 15:14 UTC

This package is auto-updated.

Last update: 2024-04-28 13:31:04 UTC


README

68747470733a2f2f7777772e737570706f727470616c2e636f6d2f6173736574732f696d672f6c6f676f5f626c75655f736d616c6c2e706e67
A set of CLI tools to help analyse and maintain SupportPal language files.

Build Status Latest Stable Version License

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/ ...