Global

Members

appTag

{string} Used for reporting untranslatable items.
Source:
See:
  • I18N.onfail()

fails

Record failed translations, so we only report them once. {string: boolean} but set to {string} "!" if it gets too big.
Source:

lang

Two-character ISO639 language code of the destination language, or a custom value for special languages (eg 'lolcat', or 'user-defined')
Source:

loaded

{boolean} Is it safe to use this I18N object?
Source:

Methods

dateFormat(date) → {string}

Format dates. By default uses Date.toLocaleString(), which uses the browser's locale setting. Users can replace this with their own function -- or with false to switch off.
Parameters:
Name Type Description
date Date
Source:
Returns:
Type
string

numberFormat(num) → {string}

Format numbers. By default does nothing. Users can replace this with their own function -- or with false to switch off.
Parameters:
Name Type Description
num number
Source:
Returns:
Type
string