Always update selectedLanguage on route change
A minor change to make sure selectedLanguage
is always updated when the route changes, even when locale.value
already matches newLang
Test by pulling changes locally, navigating to site, then manually changing url ending to es
. Button should now be updated to read 'Espanol', and if you manually edit again to en
button should read 'English'