Can't change "default locale"

AI-generated summary

A bug report discusses the inability to change the default locale in Discourse, where language settings fail to save and persist after a page refresh. erlend_sh initially reports the issue, noting that the interface incorrectly identifies the current language as English even after a change. codinghorror suggests potential contributors, and j.jaffeux confirms the issue is not reproducible on the 5.1 branch. matteocontrini confirms the problem exists in a fresh installation. tgxworld identifies a fix in a specific commit and advises testing. erlend_sh confirms the fix resolves the issue, though a cache refresh was needed to see the change in incognito mode.

Changing the default locale setting currently does nothing, as it does not save. Tested on Meta and Try.

  • Change language
  • Hit save
  • Refresh page: Language is still English (or, I’m assuming, whatever was the default language before this regression)

Edit: hmmm, seems it’s not quite as simple as I described it because language got changed on Meta now, but in settings it says it’s still English… I can change it to any language except English, because the interface insists that this is the current language in use.

4 Me gusta

Probably either @j.jaffeux (select changes) or @tgxworld (Rails 5.1 changes)

It’s not using the new select and I tried on the 5.1 branch and couldn’t reproduce with my local setup, will need more investigation.

3 Me gusta

Then you will need to check with @tgxworld

I’ve just installed Discourse and I’m having the same issue

@erlend_sh Can you try again? It is fixed in

https://github.com/discourse/discourse/commit/07bfe3d053814c5691652a5eda9142a86968d510

6 Me gusta

Seems fine now! Language is changed immediately upon refresh and the language selector does not get stuck on the previous default locale.

For some reason I had to do a “Empty cache and hard reload” to get the new locale to kick in in incognito mode, but that’s probably just a Chrome quirk.

5 Me gusta

This topic was automatically closed after 46 hours. New replies are no longer allowed.