Module:Translations

From Cassette Beasts
Revision as of 21:26, 14 July 2025 by Solari (talk | contribs)

Documentation for this module may be created at Module:Translations/doc

local p = {}

local translations = mw.text.jsonDecode(mw.title.new('Data:Translations'):getContent())

function p.get_tl(frame)
	if (translations[frame.args[1]] ~= nil) and (translations[frame.args[2]] ~= nil) then
		return translations[frame.args[1]][frame.args[2]]
	else
		return '???'
	end
end

return p