- warningOn
Display console warning on missing template
- markMissing
Marks missing templates on the screen
- setDictionary(locale, dictionary_)
Set active dictionary
- localize(input, namespace)
Localize the given string/template
- localizeTag(element, namespace)
Localizes the content of a single tag
- localizeTags(rootElement, namespace)
Localize all tags marked with the "localize" attribute. Note that if the page, or the part under the rootElement changes, the method should be called again.
- render(template, fields)
Display console warning on missing template
Marks missing templates on the screen
Set active dictionary
Kind: global function
Param | Description |
---|---|
locale | locale name |
dictionary_ | the dictionary |
Localize the given string/template
Kind: global function
Param | Description |
---|---|
input | |
namespace | the namespace to use. |
Localizes the content of a single tag
Kind: global function
Param | Description |
---|---|
element | the html node |
namespace | the namespace to use. A 'localize' attribute can also denotes the namespace. |
Localize all tags marked with the "localize" attribute. Note that if the page, or the part under the rootElement changes, the method should be called again.
Kind: global function
Param | Description |
---|---|
rootElement | starting point to check |
namespace | the namespace to use. A 'localize' attribute can also denotes the namespace. |
Kind: global function
Param | Description |
---|---|
template | the string to translate |
fields | the list of replacements |