diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-10-18 13:48:05 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-11-05 11:01:45 +0100 |
commit | ab405edfb63c589204fed7d54748f2d1e8108d18 (patch) | |
tree | 9d9e6651e48bf7c12c0f2e498ef8b0125086cf02 /modules/luci-mod-network/Makefile | |
parent | c916b5ed875675749c3a04c7b95340a5d4443722 (diff) |
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>
Diffstat (limited to 'modules/luci-mod-network/Makefile')
0 files changed, 0 insertions, 0 deletions