Module:OSM Constants

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Create] Documentation
return {
	
	-- Known language namespaces and their corresponding language codes
	nsToLangCodeMap = {
	    [200] = 'de',
	    [202] = 'fr',
	    [204] = 'es',
	    [206] = 'it',
	    [208] = 'nl',
	    [210] = 'ru',
	    [212] = 'ja',
	},

	-- list of language codes that are not supported by MediaWiki
	customLangCodes = {
		['ca-valencia'] = 'Valencian', -- valencià
		['cnr'] = 'Montenegrin', -- crnogorski
		['gcf'] = 'Guadeloupean Creole French', -- kréyòl gwadloupéyen
		['kfa'] = 'Kodava', -- ಕೊಡವ
		['mrw'] = 'Maranao', -- Maranao
		['no'] = 'Norwegian', -- Norsk
		['rcf'] = 'Reunion', --  Creole, kréol rénioné
		['sr-cyrl'] = 'Serbian (Cyrillic script)', -- српски (ћирилица)‎
		['sr-latn'] = 'Serbian (Latin script)', -- srpski (latinica)‎
		['swg'] = 'Swabian', -- Schwäbisch
		['sxu'] = 'Upper Saxon', --  Obersächsisch
		['trp'] = 'Kokborok', -- Kókborok ককবরক
	},
}