luci/modules/luci-base/htdocs/luci-static/resources
Jo-Philipp Wich ab405edfb6 luci-base: cbi.js: add client side translation infrastructure
Implement the string hash algorithm used by LuCI's translation system in
JavaScript and provide a `_()` translation wrapper function to lookup
messages in the global string table.

Once client side translation loading is activated in a later commit,
JavaScript code can use the same string translation mechanism as server
side Lua code, e.g. `_("Static Routes")` would yield "Statische Routen"
when the German translation is loaded.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
..
cbi resources/icons: Use gifsicle to save a few bytes. 2015-10-09 16:00:57 -07:00
icons luci-base: remove unused icons 2018-07-17 16:19:00 +02:00
cbi.js luci-base: cbi.js: add client side translation infrastructure 2018-11-05 11:01:45 +01:00
xhr.js luci-base: xhr.js: decode JSON for POST requests as well 2018-07-27 14:07:23 +02:00