Confirmed users
1,016
edits
No edit summary |
|||
Line 26: | Line 26: | ||
* bind example: | * bind example (declarative): | ||
<pre class="brush:js"> | <pre class="brush:js"> | ||
Line 74: | Line 74: | ||
* addReference(url) - adds a l10n file for a locale | * addReference(url) - adds a l10n file for a locale | ||
* getValue(l10n_id(, {params})) - loads an entity value | * getValue(l10n_id(, {params})) - loads an entity value | ||
* bindEntity(l10n_id, params) - binds entity to a set of variables. Makes an entity value update when one of params changes | * bindEntity(l10n_id, params) - (declarative) binds entity to a set of variables. Makes an entity value update when one of params changes | ||
* setLocale(ab-CD) - switch locale | * setLocale(ab-CD) - switch locale | ||
* more API may be hooked into other API's depending on what we want | * more API may be hooked into other API's depending on what we want |