Skip to content
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

Merged
merged 6 commits into from
Jun 26, 2018
Merged

Add zh-CN locale #792

merged 6 commits into from
Jun 26, 2018

Conversation

cubicwork
Copy link
Member

Add Simplified Chinese language support for date-fns v2.0

@cubicwork
Copy link
Member Author

due to CI test job2 and job3 fail

1 similar comment
@cubicwork
Copy link
Member Author

due to CI test job2 and job3 fail

@cubicwork cubicwork closed this Jun 21, 2018
@cubicwork cubicwork reopened this Jun 21, 2018
@cubicwork
Copy link
Member Author

due to CI test job2 fail

@cubicwork cubicwork closed this Jun 21, 2018
@cubicwork cubicwork reopened this Jun 21, 2018
@cubicwork cubicwork changed the title Add zh-CN support for v2.0 Add zh-CN locale Jun 22, 2018
Copy link
Contributor

@leshakoss leshakoss left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this comment

Copy link
Member Author

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: ' 年',
Copy link
Contributor

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"?

Copy link
Member Author

@cubicwork cubicwork Jun 22, 2018

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"

Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

@leshakoss leshakoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@leshakoss leshakoss merged commit 18f530c into date-fns:master Jun 26, 2018
@kossnocorp
Copy link
Member

The locale is released as 2.0.0-alpha.11 👍

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.

4 participants