Do Spanish language courses taken in middle school count toward college entry requirements?
Yes, they can be counted towards college entrance. If you have completed a total of 3-4 years of language studies in middle and high school you should fulfill the language requirements.
In the case of the University of California, language courses taken in middle school can be counted as long as the student continues to study the language at a higher level in high school and maintain a grade of C or above:
'Some courses in mathematics and language other than English completed in grades 7 and 8 may be counted toward the 11 courses. Middle school courses must be comparable in content to courses offered at the high school level. Typically, middle school coursework is validated by higher-level coursework completed in high school.
For example, an intermediate algebra course completed in high school with a grade of C or higher will validate beginning algebra taken in seventh or eighth grade. Likewise, a Spanish 2 course completed with a grade of C or higher will validate Spanish 1 completed prior to high school.'
In the case of Princeton, the college expects students will complete four years of one foreign language before beginning to study at Princeton (this means that it does not matter if its in middle school or high school). https://admission.princeton.edu/how-apply/academic-preparation
Other colleges, do not specify whether the middle school studies in a foreign languages count, they just state how many years are required or recommended. However the consensus online in blogs is that they do count (College Confidential- http://www.collegeconfidential.com/articles/does-middle-school-foreign-language-count-at-college-admission-time/, Thoughtco.com- https://www.thoughtco.com/foreign-language-requirement-college-admissions-788842). Note that 7+8 grade Spanish is equivalent to Spanish 1 or one year of Spanish.