Zelda Wiki

Want to contribute to this wiki?
Sign up for an account, and get started!

Come join the Zelda Wiki community Discord server!

READ MORE

Zelda Wiki
Advertisement

Documentation for this module may be created at Module:I18n/Documentation

local p = {}

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

return p
Advertisement