function JsonToLocalizationTable.loadFolder(S,a)assert(type(S)=="\115\116\114\105\110\103","\066\097\100 \116\097\098\108\101\078\097\109\101")local j=JsonToLocalizationTable.getOrCreateLocalizationTable()for a,u in pairs(a:GetDescendants())do if u:IsA("\083\116\114\105\110\103\086\097\108\117\101")then local a=JsonToLocalizationTable.localeFromName(u.Name)JsonToLocalizationTable.addJsonToTable(j,a,u.Value,S)elseif u:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then local a=JsonToLocalizationTable.localeFromName(u.Name)recurseAdd(j,a,"",require(u),S)end end return j end

function JsonToLocalizationTable.loadFolder(tableName, folder)
	assert(type(tableName) == "string", "Bad tableName")

	local localizationTable = JsonToLocalizationTable.getOrCreateLocalizationTable()

	for _, item in pairs(folder:GetDescendants()) do
		if item:IsA("StringValue") then
			local localeId = JsonToLocalizationTable.localeFromName(item.Name)
			JsonToLocalizationTable.addJsonToTable(localizationTable, localeId, item.Value, tableName)
		elseif item:IsA("ModuleScript") then
			local localeId = JsonToLocalizationTable.localeFromName(item.Name)
			recurseAdd(localizationTable, localeId, "", require(item), tableName)
		end
	end
	return localizationTable
end
