Similar to what we have on the homepage, add a global language switch that applies to all the docs examples, and store the preference.