Skip to main content
Version: Next

Localization

Localization

new Localization(commandkit, config)
ParameterTypeOptionalDescription
commandkitCommandKitThe command kit instance.
configLocalizationConfigThe 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