Skip to content

Use different formatted language code for luxon#4033

Merged
dartcafe merged 3 commits into
mainfrom
fix/language-code-luxon
May 21, 2025
Merged

Use different formatted language code for luxon#4033
dartcafe merged 3 commits into
mainfrom
fix/language-code-luxon

Conversation

@dartcafe

@dartcafe dartcafe commented May 21, 2025

Copy link
Copy Markdown
Collaborator

fixes #4032

Luxon uses different language codes. Nextcloud gives i.e. en_GB, but Luxon expects en-GB.

See https://moment.github.io/luxon/api-docs/index.html#datetimesetlocale

Luxon seems to rely on the Intl-Formatting.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

Signed-off-by: dartcafe <github@dartcafe.de>
@dartcafe dartcafe added this to the 8.0 milestone May 21, 2025
dartcafe added 2 commits May 21, 2025 19:49
Signed-off-by: dartcafe <github@dartcafe.de>
Signed-off-by: dartcafe <github@dartcafe.de>
@dartcafe dartcafe merged commit f90d565 into main May 21, 2025
45 checks passed
@dartcafe dartcafe deleted the fix/language-code-luxon branch July 13, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When locale is not recognised, the dates are not shown

1 participant