Confirmed users
1,016
edits
No edit summary |
|||
Line 8: | Line 8: | ||
=== Proposal === | === Proposal === | ||
Implement a set of API's allowing for jetpack localization | Implement a set of API's allowing for jetpack localization | ||
* simple example: | |||
<pre class="brush:js"> | |||
var ctx = l10n.Context() | |||
ctx.addReference('url://foo.l10n') | |||
var val = ctx.getValue('id1') | |||
notification.show(val) | |||
var val2 = ctx.getValue('id2', {tabs: 5}) | |||
notification.show(val2) | |||
</pre> | |||
* bind example: | * bind example: |