Module:languages/by name

Hello, you have come here looking for the meaning of the word Module:languages/by name. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:languages/by name, but we will also tell you about its etymology, its characteristics and you will know how to say Module:languages/by name in singular and plural. Everything you need to know about the word Module:languages/by name you have here. The definition of the word Module:languages/by name will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:languages/by name, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module generates a table which maps language names to language codes. It is then loaded by Module:languages using mw.loadData() to perform data lookup by name.


local export = {}

for code, data in pairs(require("Module:languages/data/all")) do
	export] = code
	
	if data.otherNames then
		for i, otherName in pairs(data.otherNames) do
			if not export then
				export = code
			end
		end
	end

	if data.aliases then
		for i, alias in pairs(data.aliases) do
			if not export then
				export = code
			end
		end
	end
end

return export