luci/modules/luci-base/luasrc/controller
Jo-Philipp Wich c916b5ed87 luci-base: expose system translations to JavaScript
Add a new /admin/translations/ endpoint which exposes the loaded system
translations as JavaScript file.

Once referenced by <script>, the endpoint will create a `window.TR` object
containing the entire translation string table for use on the client side.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00
..
admin luci-base: expose system translations to JavaScript 2018-11-05 11:01:45 +01:00