There’s probably some weirdness with the language settings from our app platform provider. It usually relies on the Accept-Language header or a cookie that is set specifying a language. There were always issues with people whose browser selected multiple languages in Accept-Language which is why the cookie exists but maybe they’ve changed it.
The multiple languages could also simply be you are in German but not all strings are translated yet.
On my side sotadata page opened on computer is fine in English language with English flag.
On the iphone flag is English but contents in Polish - it was started from some time may be 1 year ago or so.
Before was in English same as on computer.
Sotawatch is fine in English on both computer and iphone.
Hi Andrew,
It seems that after a second change attempt, the text sorts itself out, all German or all English. Although a simple refresh doesn’t fix it, cycling through the change a second time does. I wonder if you see the same Richard?
Perhaps it’s a browser cache issue- let me try that and report back.
Switch back to English and all is OK - have you changed something Andrew? I have not cleared the Browser cache yet as I wanted to document status before and after - it seems things are now working as expected, at least on my PC - Richard, is all good with you now?
I’ve touched nothing. Out of interest is there any ad blockers or something that might object to a cookie?
There’s also been a ton of stuff related to cookie handling in recent times by browsers so it may be something in the backend. If I get a chance later I will take a look
Thanks, Andrew. I don’t have ad blockers installed; however, what Microsoft has in their latest version of Edge on Windows 11 (as I am running) is anyone’s guess!
Having the same problem since months. But the other way around as i prefer to use the SOTA infrastructure in English.
Changing languages seems to work once but when I switch back again the flag on the right top changes but the text stays in the previously selected language. Experiencing this on SOTAwatch and SOTAdata too.
The only thing that works for me is to change the URL from …org.uk/de/ to …org.uk/en/
Using Firefox with all adblockers, … disabled for the SOTA websites!
I think it’s related to this. I’ve just set the handling to be Secure context only (no one access SW via non-HTTPS anyway - it can’t be done), and the change is building now. I can’t actually test prior to pushing due to the way the language redirects are handled, but give that a go and see if it’s better. If it’s completely broken, I’ll revert the change.
It looks like the language preference set in the browser has priority over the manual choice in the drop-down menu.
If I change to the browser language to German and force reload it will use the first browser language.
The Flag Icon is changing when selecting another language but it does not change the URL so e.g sotadata.org.uk/en does not change to /de and vice-versa.
The SSO language (and/or browser language) is propably overruling the cookies setting (nf_lang)
1.) If SSO (KEYCLOAK_LOCALE) is not set and no nf_lang is set use the Browser language
2.) If SSO (KEYCLOAK_LOCALE) is set use it
3.) If nf_lang is not the same as SSO use the nf_lang