--[=[
	Extracts the locale from the name

	@param tableName string -- Used for source
	@param localeId string -- the defaultlocaleId
	@param dataTable table -- Data table to load from
	@return LocalizationTable
]=]

function JsonToLocalizationTable.loadTable(tableName, localeId, dataTable)
	assert(type(tableName) == "string", "Bad tableName")

	local localizationTable = JsonToLocalizationTable.getOrCreateLocalizationTable()

	recurseAdd(localizationTable, localeId, "", dataTable, tableName)

	return localizationTable
end
