-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add zh-CN locale #792
Add zh-CN locale #792
Conversation
due to CI test job2 and job3 fail |
1 similar comment
due to CI test job2 and job3 fail |
due to CI test job2 fail |
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.
It's great, thanks a lot! ⭐️
} | ||
|
||
// Note: in English, the names of days of the week and months are capitalized. |
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.
Please remove this comment
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.
ok, i will remove those comment
return String(number) | ||
var unit = String(options.unit) | ||
var unitMap = { | ||
year: ' 年', |
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.
Could you please explain what is happening here? Would it translate as "2018th year"?
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.
yes. it would translate as "2018th year", should i remove the unit ? just translate as "第2018" which means "2018th"
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.
@cubicwork yes, remove them please. While it could be useful, this behaviour is inconsistent with other locales
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.
ok
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.
👍
The locale is released as |
Add Simplified Chinese language support for date-fns v2.0