this post was submitted on 05 Mar 2025
26 points (84.2% liked)
BuyFromEU
1228 readers
576 users here now
Welcome to BuyFromEU - A community dedicated to supporting European-made goods and services!
We also invite you to subscribe to:
Logo generated with mistral le chat Banner by Christian Lue on unsplash.com
founded 2 weeks ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I tested the code locally.
The accept-language header is sent automatically by the browser. You can configure it in the settings, eg in Firefox "Choose your preferred language for displaying pages".
Hm, maybe something else happens in the account creation. I created a post on [email protected], let's see
Ah, so that might be where the issue comes from? Isn't that a bit risky to only have let's say, users with Firefox setup in German to only see German posts on Lemmy, while most of them probably speak English as well?
That is true, but Im not sure what would be a better solution. Show a language selector on the registration page? That would make registration even more complicated, and someone needs to implement it. Or prompt the user to change languages after signup? Again someone needs to implement it. Enable English by default for all new users? That would be easy, but there are also people who dont understand English.
Maybe leave the language configuration to the servers, and drop the browsers settings?
That way generalist instances like lemm.ee could have all of them enabled, and for instance Jlai.lu could have only French, English and Undetermined selected?
I made a pull request for this.
https://github.com/LemmyNet/lemmy/pull/5485
Great, thanks!
Also, I just checked on my account here on dbzer0 running 0.19.9, but it seems I can't just show all languages when only selecting "Undetermined" as it used to be?
Now only selecting Undetermined seems to hide all the other languages
That wasnt changed, to see all languages you have to enable everything (Ctrl+A).
Hm. Wasn't there a time when new joiners could just see every language by default? I think I remember that
Ah right in the past new users always had all languages enabled. But the way languages work after being enabled/disabled hasnt changed.
Ah, that makes sense.