Persists code and reloads with ?lang=<code>.
code
?lang=<code>
Both channels are written for the same reason as the profile switcher: the URL parameter makes THIS load deterministic (and is what initI18n reads first), while localStorage carries the preference to later visits.
initI18n
Target language code (validated).
Persists
codeand reloads with?lang=<code>.Both channels are written for the same reason as the profile switcher: the URL parameter makes THIS load deterministic (and is what
initI18nreads first), while localStorage carries the preference to later visits.