Module:LocGetString: Revision history

From Heroes of Might and Magic: Olden Era Official Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 November 2025

15 November 2025

10 November 2025

  • curprev 11:4811:48, 10 November 2025 Krom talk contribs 1,337 bytes +1,337 Created page with "local p = {} local langCache = {} -- кеш по языкам local function getLangData(lang) if langCache[lang] then return langCache[lang] end local title = mw.title.new("Data:LocStrings/" .. lang .. ".json") local content = title and title:getContent() or "" if content == "" then langCache[lang] = {} return langCache[lang] end local ok, data = pcall(mw.text.jsonDecode, content) if not ok or type(data) ~= "table" then..."