Top schools will sometimes look past something like this if your application has other (notable) merits.
Just to clarify: does your school offer and suggest 4 years of the same language?
Once on campus many schools hold placement exams. If you have not taken any FL, you would have to take the required semesters to graduate at many schools. So getting a head start makes sense.
I would call admissions to ask about this. I do not think this should prevent you from applying. Especially if you have a genuine interest in computer science.
In our experience, tops schools were more flexible than commonly thought and admissions folks respected authentic interests that were pursued at the cost of the usual recommendations. But for this case, I can’t say anything for sure: ask. And ask if you should take Spanish in senior year and/or the summer.
It’s easy enough to take an online class too. VHS Learning | VHS Learning