luci-base: introduce luci.i18n.dump()
[project/luci.git] / modules / luci-base / luasrc / i18n.lua
index 968c387f12b6ec785264c8aa2deb3770a520504c..42de832f7b95ab5b045041264ad7d133aacd5aba 100644 (file)
@@ -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