function JsonToLocalizationTable.loadFolder(v,Y)assert(type(v)=="\115\116\114\105\110\103","\066\097\100 \116\097\098\108\101\078\097\109\101")local y=JsonToLocalizationTable.getOrCreateLocalizationTable()for Y,w in pairs(Y:GetDescendants())do if w:IsA("\083\116\114\105\110\103\086\097\108\117\101")then local Y=JsonToLocalizationTable.localeFromName(w.Name)JsonToLocalizationTable.addJsonToTable(y,Y,w.Value,v)elseif w:IsA("\077\111\100\117\108\101\083\099\114\105\112\116")then local Y=JsonToLocalizationTable.localeFromName(w.Name)recurseAdd(y,Y,"",require(w),v)end end return y end
--[=[
	Loads a folder into a localization table.

	@param tableName string -- Used for source
	@param folder Folder -- A Roblox folder with StringValues containing JSON, named with the localization in mind
]=]
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
