This package is part of YASMF (Yet Another Simple Mobile Framework). It can be used standalone.
$ npm install --save yasmf-localization
var Localization = require("yasmf-localization");
# or
import Localization from "yasmf-localization";
Note: to use in a browser, you'll need to use Browserify or Webpack or the like.
Check the tests. More documentation forthcoming.
First release.