Difference between revisions of "Module:Data/static/language"
(Remove direct dependency on the region data.) |
m (Remove call to sandbox code.) |
||
Line 2: | Line 2: | ||
local thisData = mw.loadData( 'Module:Data/static/language/data' ) | local thisData = mw.loadData( 'Module:Data/static/language/data' ) | ||
− | local DATA = require( 'Module:Data | + | local DATA = require( 'Module:Data' ) |
return function( v ) | return function( v ) |
Latest revision as of 12:14, 9 January 2020
-- <pre>
local thisData = mw.loadData( 'Module:Data/static/language/data' )
local DATA = require( 'Module:Data' )
return function( v )
return thisData.main[
thisData.normalize[
( DATA.getRegion( v ) or {} ).index
]
]
end
-- </pre>