Skip to content

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

Notifications You must be signed in to change notification settings

supportpal/language-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ef02d9 · Nov 25, 2024

History

22 Commits
Nov 25, 2024
Sep 24, 2024
Sep 24, 2024
May 29, 2021
May 29, 2021
Jun 30, 2021
Aug 23, 2023
Jun 2, 2021
May 29, 2021
May 29, 2021
May 29, 2021

Repository files navigation


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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages