[bug] Language detection of browser fails #338

Open
opened 2023-08-30 21:45:18 +00:00 by vinzv · 0 comments

Version

BE 3.10.4-0-g0af8e93 / FE e7a558a

What were you trying to do?

I'm trying to build a CSS selector to show/hide divs depending on the language code set in <html lang="…">.
My browser's locale is set to German, but Akkoma-FE keeps delivering lang="en". Even setting the instance's default language to "de" in Admin-FE did not help.

What did you expect to happen?

Looking at gettext.ex I would have expected the lang="…" parameter to change to de.

What actually happened?

Well, I keep getting lang="en".

Severity

I can manage

Have you searched for this issue?

  • I have double-checked and have not found this issue mentioned anywhere.
### Version BE 3.10.4-0-g0af8e93 / FE e7a558a ### What were you trying to do? I'm trying to build a CSS selector to show/hide divs depending on the language code set in `<html lang="…">`. My browser's locale is set to German, but Akkoma-FE keeps delivering `lang="en"`. Even setting the instance's default language to "de" in Admin-FE did not help. ### What did you expect to happen? Looking at [gettext.ex](https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/gettext.ex) I would have expected the `lang="…"` parameter to change to `de`. ### What actually happened? Well, I keep getting `lang="en"`. ### Severity I can manage ### Have you searched for this issue? - [x] I have double-checked and have not found this issue mentioned anywhere.
Mergan added the
Bug
label 2023-09-05 07:36:33 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma-fe#338
No description provided.