Localization
Localization
new Localization(commandkit, config)
Parameter | Type | Optional | Description |
---|---|---|---|
commandkit | CommandKit | ❌ | The command kit instance. |
config | LocalizationConfig | ❌ | The localization configuration. |
Properties
public t: any
Translates the given translatable object.
Methods
public getDefaultLocale(): Locale
Get the default locale
public getLocale(): Locale
Get the current locale
public getStrategy(): LocalizationStrategy
Get the localization strategy.
public getTarget(): string
Get the localization target