summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/i18n.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc/i18n.lua')
-rw-r--r--modules/luci-base/luasrc/i18n.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/i18n.lua b/modules/luci-base/luasrc/i18n.lua
index 968c387f1..42de832f7 100644
--- a/modules/luci-base/luasrc/i18n.lua
+++ b/modules/luci-base/luasrc/i18n.lua
@@ -69,3 +69,9 @@ end
function stringf(key, ...)
return tostring(translate(key)):format(...)
end
+
+function dump()
+ local rv = {}
+ tparser.get_translations(function(k, v) rv[k] = v end)
+ return rv
+end