When I switch the language to "Deutsch"

Switch the page to another language, by the name the site shows ("Deutsch") or by its code ("de"). The step uses the language chooser of the page; when the page has none and the toolbar shows, it uses the toolbar's "Language" menu.

Examples

When I switch the language to "Deutsch"
When I switch the language to "English"
And we switch the language to "de"
When switch the page language to "Deutsch"
And we switch the site language to "en"

Pattern

When(/^(I |we )*switch the (?:page |site )?language to "([^"]*)"$/, …)

Part of @webship-js/django-cms-steps (github.com/webship/django-cms-steps), a step pack for Webship-js 2.0.x.