Module:Month translator/data: Difference between revisions

Content deleted Content added
create;
 
No edit summary
Line 2:
 
local en_months = {'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'};
 
local month_names = {};
 
local patterns = {
Line 20 ⟶ 18:
]]
 
local function month_list_getmonth_names_get ()
local month_names = {};
 
for _, lang in ipairs (langs) do -- spin through the languages table
local lang_obj = mw.getLanguage (lang); -- make a language object for the current language
Line 30:
end
end
return month_names;
end
 
Line 37 ⟶ 38:
 
return {
month_names = month_namesmonth_names_get (),
patterns = patterns,
}