add basic cookie-based language switching support