-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ordinal formatting in Swedish #743
Closed
Kakebake opened this issue
Dec 3, 2019
· 1 comment
· Fixed by #745 or BlueWallet/BlueWallet#862 · May be fixed by cds-snc/apply-for-a-grant#32
Closed
Ordinal formatting in Swedish #743
Kakebake opened this issue
Dec 3, 2019
· 1 comment
· Fixed by #745 or BlueWallet/BlueWallet#862 · May be fixed by cds-snc/apply-for-a-grant#32
Labels
Comments
iamkun
added a commit
that referenced
this issue
Dec 8, 2019
iamkun
added a commit
that referenced
this issue
Dec 8, 2019
iamkun
pushed a commit
that referenced
this issue
Dec 18, 2019
## [1.8.18](v1.8.17...v1.8.18) (2019-12-18) ### Bug Fixes * Add missing locale type definition ([#716](#716)) ([cde5d0b](cde5d0b)) * Fix .locale() handel unsupported locale ([78ec173](78ec173)) * Update Italian locale (it) ([#727](#727)) ([5b53e98](5b53e98)) * Update locale (fa) ([#733](#733)) ([9ad2e47](9ad2e47)) * Update locale (zh-cn) ([#706](#706)) ([e31e544](e31e544)) * Update locale (zh-cn) meridiem ([#735](#735)) ([15d1b81](15d1b81)) * Update LocaleData plugin to support dayjs().longDateFormat() ([#734](#734)) ([aa0f210](aa0f210)), closes [#680](#680) * Update Mongolian (mn) locale relativeTime ([#753](#753)) ([6d51435](6d51435)) * Update Swedish locale (sv) fix ordinal error ([#745](#745)) ([49670d5](49670d5)), closes [#743](#743)
🎉 This issue has been resolved in version 1.8.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this issue
May 10, 2022
## [1.8.18](iamkun/dayjs@v1.8.17...v1.8.18) (2019-12-18) ### Bug Fixes * Add missing locale type definition ([#716](iamkun/dayjs#716)) ([cde5d0b](iamkun/dayjs@cde5d0b)) * Fix .locale() handel unsupported locale ([78ec173](iamkun/dayjs@78ec173)) * Update Italian locale (it) ([#727](iamkun/dayjs#727)) ([5b53e98](iamkun/dayjs@5b53e98)) * Update locale (fa) ([#733](iamkun/dayjs#733)) ([9ad2e47](iamkun/dayjs@9ad2e47)) * Update locale (zh-cn) ([#706](iamkun/dayjs#706)) ([e31e544](iamkun/dayjs@e31e544)) * Update locale (zh-cn) meridiem ([#735](iamkun/dayjs#735)) ([15d1b81](iamkun/dayjs@15d1b81)) * Update LocaleData plugin to support dayjs().longDateFormat() ([#734](iamkun/dayjs#734)) ([aa0f210](iamkun/dayjs@aa0f210)), closes [#680](iamkun/dayjs#680) * Update Mongolian (mn) locale relativeTime ([#753](iamkun/dayjs#753)) ([6d51435](iamkun/dayjs@6d51435)) * Update Swedish locale (sv) fix ordinal error ([#745](iamkun/dayjs#745)) ([49670d5](iamkun/dayjs@49670d5)), closes [#743](iamkun/dayjs#743)
andrewhood125ruhuc
added a commit
to andrewhood125ruhuc/SidRH2
that referenced
this issue
May 10, 2022
## [1.8.18](iamkun/dayjs@v1.8.17...v1.8.18) (2019-12-18) ### Bug Fixes * Add missing locale type definition ([#716](iamkun/dayjs#716)) ([cde5d0b](iamkun/dayjs@cde5d0b)) * Fix .locale() handel unsupported locale ([78ec173](iamkun/dayjs@78ec173)) * Update Italian locale (it) ([#727](iamkun/dayjs#727)) ([5b53e98](iamkun/dayjs@5b53e98)) * Update locale (fa) ([#733](iamkun/dayjs#733)) ([9ad2e47](iamkun/dayjs@9ad2e47)) * Update locale (zh-cn) ([#706](iamkun/dayjs#706)) ([e31e544](iamkun/dayjs@e31e544)) * Update locale (zh-cn) meridiem ([#735](iamkun/dayjs#735)) ([15d1b81](iamkun/dayjs@15d1b81)) * Update LocaleData plugin to support dayjs().longDateFormat() ([#734](iamkun/dayjs#734)) ([aa0f210](iamkun/dayjs@aa0f210)), closes [#680](iamkun/dayjs#680) * Update Mongolian (mn) locale relativeTime ([#753](iamkun/dayjs#753)) ([6d51435](iamkun/dayjs@6d51435)) * Update Swedish locale (sv) fix ordinal error ([#745](iamkun/dayjs#745)) ([49670d5](iamkun/dayjs@49670d5)), closes [#743](iamkun/dayjs#743)
splashwizard
pushed a commit
to splashwizard/tracking-time
that referenced
this issue
Oct 21, 2024
## [1.8.18](iamkun/dayjs@v1.8.17...v1.8.18) (2019-12-18) ### Bug Fixes * Add missing locale type definition ([#716](iamkun/dayjs#716)) ([cde5d0b](iamkun/dayjs@cde5d0b)) * Fix .locale() handel unsupported locale ([78ec173](iamkun/dayjs@78ec173)) * Update Italian locale (it) ([#727](iamkun/dayjs#727)) ([5b53e98](iamkun/dayjs@5b53e98)) * Update locale (fa) ([#733](iamkun/dayjs#733)) ([9ad2e47](iamkun/dayjs@9ad2e47)) * Update locale (zh-cn) ([#706](iamkun/dayjs#706)) ([e31e544](iamkun/dayjs@e31e544)) * Update locale (zh-cn) meridiem ([#735](iamkun/dayjs#735)) ([15d1b81](iamkun/dayjs@15d1b81)) * Update LocaleData plugin to support dayjs().longDateFormat() ([#734](iamkun/dayjs#734)) ([aa0f210](iamkun/dayjs@aa0f210)), closes [#680](iamkun/dayjs#680) * Update Mongolian (mn) locale relativeTime ([#753](iamkun/dayjs#753)) ([6d51435](iamkun/dayjs@6d51435)) * Update Swedish locale (sv) fix ordinal error ([#745](iamkun/dayjs#745)) ([49670d5](iamkun/dayjs@49670d5)), closes [#743](iamkun/dayjs#743)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using the format for ordinal numbers (
Do
) in Swedish the formatting is wrong for 1 and 2. It becomesam
instead ofa
. This is likely because the date is formatted a second time, anda
is formatted to beam
.What happens:
> dayjs('2019-01-01').locale('sv').format('dddd Do MMMM')
'tisdag 1am januari'
> dayjs('2019-01-02').locale('sv').format('dddd Do MMMM')
'onsdag 2am januari'
> dayjs('2019-01-03').locale('sv').format('dddd Do MMMM')
'torsdag 3e januari'
Expected behavior
I expect
1st
to be1a
and2nd
to be2a
> dayjs('2019-01-01').locale('sv').format('dddd Do MMMM')
'tisdag 1a januari'
> dayjs('2019-01-02').locale('sv').format('dddd Do MMMM')
'onsdag 2a januari'
> dayjs('2019-01-03').locale('sv').format('dddd Do MMMM')
'torsdag 3e januari'
Information
The text was updated successfully, but these errors were encountered: