Shameless plug for my own gettext-like lib for JS: <a href="https:&#x2F;&#x2F;github.com&#x2F;piranha&#x2F;puttext" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;piranha&#x2F;puttext</a><p>I also was puzzled about all this stuff coming from backend, so I wrote something to relieve my pain. :)