/handlebars-helpers-intl

Primary LanguageJavaScriptOtherNOASSERTION

handlebars-helper-intl

Handlebars helpers for internationalization.

Installation

Browser

  1. Install with bower: bower install handlebars-helper-intl

  2. Load the scripts into your page. (It does not matter which order the scripts are loaded in.)

    <script src="handlebars.js"></script>
    <script src="handlebars-helper-intl.js"></script>
  3. Register the helpers:

    HandlebarsHelperIntl.register(Handlebars);

Node/CommonJS

  1. You can install the helpers with npm: npm install handlebars-helper-intl

  2. Load in the module and register it:

    var Handlebars = require('handlebars');
    require('handlebars-helper-intl').register(Handlebars);

AMD

  1. Install with bower: bower install handlebars-form-helpers

  2. Load in the module and register it:

    define(['handlebars', 'handlebars-helper-intl'], function(Handlebars, HandlebarsHelperIntl) {
        HandlebarsHelperIntl.register(Handlebars);
    });

(Thanks to the handlebars-form-helpers package for figuring out how to register helpers in multiple environments.)

Usage

TODO