Class: LocaleUtils

util. LocaleUtils


new LocaleUtils()

Members


<static> CURRENT_LANGUAGE :string

Return the current language

Type:
  • string
Default Value:
  • "en"
Example
LocaleUtils.CURRENT_LANGUAGE; // returns 'en' unless the value of your browser is set to something else

LocaleUtils.CURRENT_LANGUAGE = "br"; // returns 'br' regardless of  your browser

LocaleUtils.CURRENT_LANGUAGE = null; // resets the _CURRENT_LANGUAGE so calling 'LocaleUtils.CURRENT_LANGUAGE;' would then return what ever your browser is set to

<static> CURRENT_LOCALE :string

Return the current language Locale of your browser

Type:
  • string
Default Value:
  • null
Example
LocaleUtils.CURRENT_LOCALE; // returns 'en-GB'

<static> Default_LANGUAGE :string

Return the Default language (language your browser is set to)

Type:
  • string
Default Value:
  • null
Example
LocaleUtils.Default_LANGUAGE; // returns 'en'