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

luci-base: template: add translation iterator function



Introduce a new luci.template.parser.get_translations() function which will
iterate all loaded translation entries and pass the to the given callback
function.

This is useful to expose the loaded translations in other formats, e.g. for
wrapping them into JSON feeds.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 4623a583
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