Globalization

Table of Contents

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

Methods

Summary

Method Description
Object getCalendar (  ) 

Gets Gregorian calendar.

string getLocale (  ) 

Gets locale.

importModule ( string fileName ) 

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

Deferred setLocale ( string localeId ) 

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

getCalendar

Gets Gregorian calendar.

Object getCalendar ( ) 

Return value:

Type Description
Object Gregorian calendar data given locale.
getLocale

Gets locale.

string getLocale ( ) 

Return value:

Type Description
string Current locale
importModule

Puts 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

Sets 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