function JsonToLocalizationTable.localeFromName(J)if J:sub(-5)=="\046\106\115\111\110"then return J:sub(1,#J-5)else return J end end

function JsonToLocalizationTable.localeFromName(name)
	if name:sub(-5) == ".json" then
		return name:sub(1, #name-5)
	else
		return name
	end
end
