Skip to content
On this page

AthenaShared.locale.locale.LocaleController ​

shared/locale/locale.LocaleController

Constructors ​

constructor ​

• new LocaleController()

Methods ​

get ​

Usage

AthenaShared.locale.locale.LocaleController.Static get(key, ...args): string

Get a locale based on its key value.

Static

Parameters ​

NameType
keystring
...argsany[]

Returns ​

string

Defined in ​

shared/locale/locale.ts:46


getWebviewLocale ​

Usage

AthenaShared.locale.locale.LocaleController.Static getWebviewLocale(key): Object

Returns an object of strings with labels for WebViews.

Static

Parameters ​

NameType
keystring

Returns ​

Object

Defined in ​

shared/locale/locale.ts:67


setLanguage ​

Usage

AthenaShared.locale.locale.LocaleController.Static setLanguage(iso639?): void

The ISO-639-1 Code to Utilize for Language

Static

Parameters ​

NameTypeDefault value
iso639?string'en'

Returns ​

void

Defined in ​

shared/locale/locale.ts:34

Created by Stuyk | Est. 2020