Members
appTag
{string} Used for reporting untranslatable items.
fails
Record failed translations, so we only report them once.
{string: boolean} but set to {string} "!" if it gets too big.
lang
Two-character ISO639 language code of the destination language,
or a custom value for special languages (eg 'lolcat', or 'user-defined')
loaded
{boolean} Is it safe to use this I18N object?
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 |
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 |
Returns:
- Type
- string