Globalization

Table of Contents

  1. Methods
    1. getCalendar
    2. getLocale
    3. importModule
    4. setLocale

Methods

Summary

Method Description
Object getCalendar()

Get gregorian calendar.

string getLocale()

Get Locale.

importModule(string fileName) 

Put the module into module array of core.util.globalize

Deferred setLocale(string localeId) 

Set Locale. This API is Async API.
Please use deferred callback functions which are returned (.done(), .then() .etc)

getCalendar

Get gregorian calendar.

Object getCalendar() 

Return value:

Type Description
Object gregorian calendar data given locale.
getLocale

Get Locale.

string getLocale() 

Return value:

Type Description
string Current locale
importModule

Put the module into module array of core.util.globalize

importModule(string fileName) 

Parameters:

Parameter Type Required / optional Default value Description
fileName string required

Return value:

No Return Value
setLocale

Set Locale. This API is Async API.
Please use deferred callback functions which are returned (.done(), .then() .etc)

Deferred setLocale(string localeId) 

Parameters:

Parameter Type Required / optional Default value Description
localeId string required

Return value:

Type Description
Deferred