Module:Translations

From Cassette Beasts
Revision as of 20:41, 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.example()
	return translations['STATUS_WINDOW_NAME']['de_DE']
end

function p.get_tl(id, lang)
	return translations[id][lang]
end