Skip to content
Commit ab405edf authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

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: default avatarJo-Philipp Wich <jo@mein.io>
parent c916b5ed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment