Skip to content

[BUG] Automatic locale detection saves the wrong string #487

@leonbeon

Description

@leonbeon

Describe the bug
When navigating to the site, local storages saves the browser locale in the key i18nextLng. In my case, the value is de (German). This however, seems to be invalid, because the drop down is in an invalid state and when selecting German manually, the local storage value is changed to de-DE.

There seems to be no config option to overwrite the language manually.

To Reproduce
Steps to reproduce the behavior:

  1. Set your browser to german locale.
  2. Navigate to the auth page (in private tab)
  3. Observe the local storage value

Expected behavior
I expected the value to be de-DE or for tinyauth to recognize deas valid

Screenshots
n/a

Logs
No logs available, because this is local behaviour.

Device (please complete the following information):

  • OS: macOS
  • Browser: Firefox
  • Tinyauth v.4.1.0
  • Docker 28.1.1

Additional context
n/a

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpinnedDo not mark this issue or pull request as stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions