Module:Translations: Difference between revisions
From Cassette Beasts
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
local translations = mw.text.jsonDecode(mw.title.new('Data:Translations'):getContent()) | local translations = mw.text.jsonDecode(mw.title.new('Data:Translations'):getContent()) | ||
function p.example() | function p.example(id) | ||
return translations[ | return translations[id]['es_MX'] | ||
end | end | ||
Revision as of 21:03, 14 July 2025
Documentation for this module may be created at Module:Translations/doc
