Skip to content

Use i18n locale instead of local lang for date#381

Merged
Turbotailz merged 2 commits into
LuckPerms:masterfrom
Tobi406:date-language-fix
Jan 1, 2022
Merged

Use i18n locale instead of local lang for date#381
Turbotailz merged 2 commits into
LuckPerms:masterfrom
Tobi406:date-language-fix

Conversation

@Tobi406
Copy link
Copy Markdown
Contributor

@Tobi406 Tobi406 commented Oct 30, 2021

We should use the selected language to display the datetime. It appears that not just the time format is returned in the client language, but also the words surrounding it like "ago", leading to situations such as "Latest, built vor 2 Wochen @ ......" ("vor 2 Wochen" is German for "2 weeks ago").
Since, should there be multiple languages translated, users can select their own language, we can just use what they have selected and render the date in that language to make the whole website in the same language.

@Turbotailz Turbotailz merged commit 2c59581 into LuckPerms:master Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants