Module:I18n

local p = {} local utilsTable = require("Module:UtilsTable")

local strings = {}

function p.loadStrings(tbl) strings = utilsTable.merge(strings, tbl) end

function p.getString(path, ...) local code = mw.getContentLanguage:getCode local localeStrings = strings[code] local subkeys = mw.text.split(path, "%.") local result = localeStrings for _, subkey in ipairs(subkeys) do		result = result[subkey] end return result:format(...) end

return p