-
Notifications
You must be signed in to change notification settings - Fork 184
Localization
jason-sanjose edited this page Aug 24, 2012
·
10 revisions
In JavaScript
var Strings = require("strings"); // load the Strings module
...
$("<span/>").text(Strings.CMD_ABOUT); // insert a localized string
In an HTML template
<!-- templateContent.html -->
<span>{{CMD_ABOUT}}</span>
/* JavaScript */
var Strings = require("strings"),
templateContent = require("text!templateContent.html");
var html = Mustache.render(templateContent, Strings);
Example: Localized Extension README.MD
TODO