Skip to content

Type Alias: CommanderTranslatorOptions ​

CommanderTranslatorOptions = object

The options of commanderTranslator.

Properties ​

component? ​

optional component?: string

The name the I18n component is registered under.

Default ​

ts
'i18n'

environment? ​

optional environment?: string

The name of an environment variable (LAKUTATA_LANG) whose language is preferred to the ones of the environment.

Default ​

ts
none

prefix? ​

optional prefix?: string

The prefix of the message keys of the texts: with 'cli', the description of the command greet is the message cli.commands.greet.description; '' for no prefix.

Default ​

ts
'cli'

Released under the MIT License.