I18N Class

Supplies Internationalization services.

note Internally, this class uses the i18next package.

Methods

Name Description
constructor(nameSpaces?: string | string[], options?: I18NOptions, renderFunction?: i18next.Callback): I18N constructor for I18N.  
registerNamespace(name: string): I18NNamespace Register a new Namespace.  
translate(key: string | string[], options?: i18next.TranslationOptions): any Return the translated value of a key.  
translateKeys(line: string): string Replace all instances of %{key} within a string with the translations of those keys.  

Defined in

Last Updated: 05 June, 2020