This module adds various I18n commands to the Ride CLI.
This command shows an overview of the defined locales.
Syntax: locales
Alias: l
This command shows an overview of the defined translations.
Syntax: translation <locale> [<query>]
<locale>
: Locale of the translation<query>
: Query to search the translations
Alias: t
This command sets a translation from the provided locale.
Syntax: translation set <locale> <key> <translation>
<locale>
: Locale of the translation<key>
: Key of the translation<translation>
: Value for the translation
Alias: ts
This command unsets a translation from the provided locale.
Syntax: translation unset <locale> <key>
<locale>
: Locale of the translation<key>
: Key of the translation
Alias: tu
This command makes sure all locales have the same keys defined by adding translation keys which are missing but defined in an other locale.
Syntax: translation missing
Alias: tm
You can use Composer to install this application.
composer require ride/cli-i18n