A tiny language library. Put this on your page:
Then, you can use the lang function as follows:
var lang = ;; //=> Deux; //=> Ce est une phrase
If this library is too simple for you, check out something like i18next.
$ npm install --save lang
(note: used to be tiny-lang, and is still available as tiny-lang on npm, but that won't be updated)
Released under the MIT license.