Dust helpers for internationalization.
-
Install with bower:
bower install dust-helper-intl
-
Load the scripts into your page. (It does not matter which order the scripts are loaded in.)
<script src="dustjs-linkedin.js"></script> <script src="dust-helper-intl.js"></script>
-
Register the helpers:
DustHelperIntl.register(dust);
-
You can install the helpers with npm:
npm install dust-helper-intl
-
Load in the module and register it:
var Dust = require('dustjs-linkedin'); global.Intl = require('intl'); require('dust-helper-intl').register(Dust);
NOTE: Since node (as of 0.10) doesn't provide the global
Intl
object (ECMA-402) you'll need to provide a polyfill. Theintl
NPM package can provide this or you can use another.
-
Install with bower:
bower install dust-form-helpers
-
Load in the module and register it:
define(['dust', 'dust-helper-intl'], function(Dust, DustHelperIntl) { DustHelperIntl.register(Dust); });
TODO