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

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: default avatarJo-Philipp Wich <jo@mein.io>
parent 8ff68c77
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