모듈:@en/Wd

최근 편집: 2021년 5월 17일 (월) 13:32
낙엽1124 (토론 | 기여)님의 2021년 5월 17일 (월) 13:32 판

이 모듈에 대한 설명문서는 모듈:@en/Wd/설명문서에서 만들 수 있습니다

local p = {}
local arg = ...
local i18n

local function loadI18n(aliasesP, frame)
	local title

	if frame then
		-- current module invoked by page/template, get its title from frame
		title = frame:getTitle()
	else
		-- current module included by other module, get its title from ...
		title = arg
	end

	if not i18n then
		i18n = require(title .. "/i18n").init(aliasesP)
	end
end

return p