ride/cli-i18n

I18n commands for the CLI of a Ride application

1.0.0 2016-10-14 10:40 UTC

This package is auto-updated.

Last update: 2024-11-13 00:42:14 UTC


README

This module adds various I18n commands to the Ride CLI.

Commands

locales

This command shows an overview of the defined locales.

Syntax: locales

Alias: l

translation

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

translation set

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

translation unset

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

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.

Syntax: translation missing

Alias: tm

Related Modules

Installation

You can use Composer to install this application.

composer require ride/cli-i18n