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
[bugfix] remove ordinal
for Turkish
locale as they use `cardin…
#4361
[bugfix] remove ordinal
for Turkish
locale as they use `cardin…
#4361
Conversation
3430f30
to
e63f09d
Compare
ordinal
for Turkish
locale as they use `cardin…ordinal
for Turkish
locale as they use `cardin…
ordinal
for Turkish
locale as they use `cardin…ordinal
for Turkish
locale as they use `cardin…
…inal` days Closes: moment#4122
e63f09d
to
86225de
Compare
ordinal
for Turkish
locale as they use `cardin…ordinal
for Turkish
locale as they use `cardin…
@BYK - can you review this? It's unclear if we should keep the Turkish ordinals in the codebase at all (this PR removes them entirely). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think removing all ordinals is not the right approach since it results in incorrect formattings such as the one I highlighted. The new test incorrectly says "45 days of the year" which is grammatically correct but means something different.
src/test/locale/tr.js
Outdated
['h hh', '3 03'], | ||
['H HH', '15 15'], | ||
['m mm', '25 25'], | ||
['s ss', '50 50'], | ||
['a A', 'pm PM'], | ||
['[yılın] DDDo [günü]', 'yılın 45\'inci günü'], | ||
['[yılın] DDDo [günü]', 'yılın 45 günü'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect. The old test is correct and we should keep that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the only spec that should be kept?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the original issue earlier, one never uses "December 3rd", it is always "3 December" or rarely, "December 3". Ordinals are only used when you are saying something like "The 3rd week of the year", "The 5th day of the month" (this one actually uses a slightly different thing than ordinals but ordinals are also fine) or "the first Sunday of March".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some further changes, can you re-check please? I am not sure if I covered everything.
@alan-agius4 - could you add a couple tests specific to the issue you're fixing? @BYK - could you review again? |
I actually amended the existing test to match the new behaviour for some dates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Turkish don't use ordinal days but rather cardinals
#4122 (comment)