function newContext(languageCode) {
    return {
        __: function(s) {
            var entry = dictionary[s];
            if (!entry) {
                console.error("unknown il8n key: " + s);
            }
            return entry && entry[languageCode] || s;
        }
    };
}
expand - expands templates with internationalized strings. The resulting HTML files are written to disk.

This utility builds the Japanese and English versions of the HTML files. The templates are written using Swig,
and roughly follows the methodology described at http://ejohn.org/blog/a-strategy-for-i18n-and-node/

English files are placed in the root: public/
Japanese files are placed under the language code: public/jp
...and so on for other languages, if ever...

don't really care about making the code nice at the moment
ideally, this would be a grunt task run at build time