Skip to content
jason-sanjose edited this page Aug 24, 2012 · 6 revisions

TL;DR

Using Localized Strings

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);

Creating New Translations

Creating new translations

Localizing Extensions

Example: Localized Extension README.MD

Clone this wiki locally