Mojo.Locale

Namespace Detail

Summary

Method Summary


Detail

Mojo.Locale.getDayNames

Returns an array containing the names of the weekdays in calendar order for the current locale. Array always starts with Sunday.


Mojo.Locale.getMonthNames

Returns an array containing the names of the months in calendar order for the current locale. Array always starts with January.


Method Detail

Mojo.Locale.getCurrentFormatRegion()

Returns the currently set region used for formatting (numbers, currency, dates, etc.; see Mojo.Format for more information) as an ISO 639- formatted string (e.g., 'us' for US formatting).

Returns

Current format region identifier string.


Mojo.Locale.getCurrentLocale()

Returns the currently set locale as an ISO 639-formatted string (e.g., 'en_us' for US English).

Returns

Current locale identifier string.


Mojo.Locale.readStringTable(fileName, locale, pathToResourcesDir, mergeFunc)

This method loads and merges the localized string tables present in the application's or framework's resource locale hierarchy and returns the parsed results.

Parameters