Show:

ia.Locale Class

Defined in: ia\utils\Locale.js:1
Module: ia

Adds locale-specific formatting for numbers, dates etc.

Constructor

ia.Locale

(
  • language
)

Parameters:

  • language String

    The language code - currently one of "en (English);de (Deutsch);es (español); fr (français);it (italiano);nl (Nederlands);be ;bg ;ca (català);cs (ceština);da (dansk);el ;et (Eesti); fi (suomi);hr (hrvatski);hu (magyar);is (íslenska);lt (Lietuviu);lv (Latviešu);mk ;no (norsk);pl (polski); pt (português);ro (româna);ru ;sk (Slovencina);sl (Slovenšcina);sq (shqipe);sr ;sv (svenska);tr (Türkçe); uk ;none".

Item Index

Properties

Methods

getLanguage

() String

Get the language of this locale as an ISO code.

Returns:

String: The language.

setLanguage

(
  • l
)

Set the language of this locale as an ISO code.

Parameters:

  • l String

    The language.

Properties

formatter

ia.Formatter

The formatter for the locale.