Module:LangVars: Difference between revisions
From Vintage Story Wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local i18n = {} | |||
function p.processLang(code) | function p.processLang(code) | ||
i18n = require( 'Module:LangVars/' .. code ).i18n | |||
return | return i18n | ||
end | |||
function p.processLink(str) | |||
local out | |||
if string.lower(str):find(string.lower(i18n.itemPickaxeHead)) then out = i18n.itemPickaxeHead end | |||
return out | |||
end | end | ||
return p | return p |
Revision as of 01:51, 23 August 2022
Documentation for this module may be created at Module:LangVars/doc