function JsonToLocalizationTable.toLocalizationTable(M,V,h)assert(type(M)=="\115\116\114\105\110\103","\066\097\100 \116\097\098\108\101\078\097\109\101")if typeof(V)=="\073\110\115\116\097\110\099\101"then local h=JsonToLocalizationTable.loadFolder(M,V)return h elseif type(V)=="\115\116\114\105\110\103"and type(h)=="\116\097\098\108\101"then local Q=JsonToLocalizationTable.loadTable(M,V,h)return Q else error("\066\097\100 \097\114\103\115")end end
--[=[
	Extracts the locale from the folder, or a locale and table.

	@param tableName string -- Used for source
	@param first Instance | string
	@param second table?
	@return LocalizationTable
]=]
function JsonToLocalizationTable.toLocalizationTable(tableName, first, second)
	assert(type(tableName) == "string", "Bad tableName")

	if typeof(first) == "Instance" then
		local result = JsonToLocalizationTable.loadFolder(tableName, first)
		-- result.Name = ("JSONTable_%s"):format(first.Name)
		return result
	elseif type(first) == "string" and type(second) == "table" then
		local result = JsonToLocalizationTable.loadTable(tableName, first, second)
		return result
	else
		error("Bad args")
	end
end
