I feel like German shouldn't count. The relatedness of these two languages is such that there are so many cognates and similar grammar, you could probably understand a lot of German sentences just by listening closely and being curious.
But kindergarten is imported the whole world over. You can't say you know German based on that. Code-switchers understand the grammar of both languages, not just a few words.
I do think the Normans entering England, or Germanic peoples mixing with Celts, or Celts being conquered by Romans for a brief time -- all of that probably produced code switchers in their moment in time, with lasting impact to our vocabular and grammar. But it's not code switching anymore. It's modern English now.
Similar things happened in Spain with Celts, Romans, Arabs, Goths, Basques... Not to mention all the regional Romance languages that survive today (Galician, Catalan). They conquered the Americas and got some infusion of that vocabulary too. Castilian borrows vocabulary from all of these. But monolingual Castilian speakers do not "code switch".