Module:Editnotice load/config loader explained

local hasI18n, i18n = pcall(mw.loadData, "Module:Editnotice load/i18n")local hasCfg, loadCfg = pcall(mw.loadData, "Module:Editnotice load/config")if not hasI18n then i18n = endif not hasCfg then loadCfg = endlocal currLang = mw.language.getContentLanguage.codelocal function fetch(message, lang, fallback) return i18n[lang][message] or i18n[fallback][message] or error("Internationalization and configuration files for is missing!")end

--[=[=========================================================================== LOAD THE CONFIGURATION FILE. WE WILL BE ASSUMING THE I18N IS PRESENT, IF IT IS NOT, THEN IT WILL THROW AN ERROR. OPTIONAL CONFIGURATION WILL BE SET TO nil OR EMPTY STRING. =============================================================================]=]local cfg =

return cfg