Ride: I18n CLI
This module adds various I18n commands to the Ride CLI., (*1)
Commands
locales
This command shows an overview of the defined locales., (*2)
Syntax: locales, (*3)
Alias: l, (*4)
translation
This command shows an overview of the defined translations., (*5)
Syntax: translation <locale> [<query>]
- <locale>
: Locale of the translation
- <query>
: Query to search the translations, (*6)
Alias: t
, (*7)
translation set
This command sets a translation from the provided locale., (*8)
Syntax: translation set <locale> <key> <translation>
- <locale>
: Locale of the translation
- <key>
: Key of the translation
- <translation>
: Value for the translation, (*9)
Alias: ts
, (*10)
translation unset
This command unsets a translation from the provided locale., (*11)
Syntax: translation unset <locale> <key>
- <locale>
: Locale of the translation
- <key>
: Key of the translation, (*12)
Alias: tu
, (*13)
translation missing
This command makes sure all locales have the same keys defined by adding translation keys which are missing but defined in an other locale., (*14)
Syntax: translation missing
, (*15)
Alias: tm
, (*16)
Installation
You can use Composer to install this application., (*17)
composer require ride/cli-i18n