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

[locale] Extend cs locale with name of the months in genitive #4765

Closed
wants to merge 1 commit into from

Conversation

marxsk
Copy link

@marxsk marxsk commented Sep 5, 2018

In Czech, it is possible to use also declined form of the month name instead of the nominative case.
This commit adds those declined names of the months.

@radekdostal @saxicek - please verify this patch as locales have to be verified by native speakers.

In Czech, it is possible to use also declined form of the month name instead of nominative case.
This commit adds those declined names of the months.
@jsf-clabot
Copy link

jsf-clabot commented Sep 5, 2018

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 94.625% when pulling a6229b6 on marxsk:develop into 2e2a5b3 on moment:develop.

@marxsk
Copy link
Author

marxsk commented Sep 5, 2018

travis failed on locale/ka.js - which were untouched by this PR

Copy link
Contributor

@saxicek saxicek left a comment

Choose a reason for hiding this comment

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

From the Czech language perspective the change is fine. There are some code changes needed though. @marxsk can you please check my version at saxicek@3319adb - maybe it would be easier for others to understand than the version by Petr Bela. If you agree I can create PR for that.

equalTest(tests[i][0].toLocaleUpperCase(), 'MMMM', i);
equalTest(tests[i][1].toLocaleUpperCase(), 'MMMM', i);
equalTest(tests[i][2].toLocaleUpperCase(), 'MMMM', i);

equalTestStrict(tests[i][1], 'MMM', i);
equalTestStrict(tests[i][0], 'MMMM', i);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are missing tests here for equalTestStrict(tests[i][2], 'MMMM', i);

@@ -71,12 +72,13 @@ function translate(number, withoutSuffix, key, isFuture) {

export default moment.defineLocale('cs', {
months : months,
monthsGenitive: monthsGenitive,
monthsShort : monthsShort,
monthsParse : (function (months, monthsShort) {
Copy link
Contributor

Choose a reason for hiding this comment

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

monthsGenitive should be passed as a parameter here to be able to override?

@@ -90,7 +92,7 @@ export default moment.defineLocale('cs', {
longMonthsParse : (function (months) {
Copy link
Contributor

Choose a reason for hiding this comment

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

monthsGenitive should be passed as a parameter here to be able to override?

@marxsk
Copy link
Author

marxsk commented Sep 10, 2018

@saxicek - I'm fine with yours version.

@saxicek
Copy link
Contributor

saxicek commented Sep 10, 2018

Created #4771 so I believe this PR can be closed now.

@marxsk marxsk closed this Sep 13, 2018
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.

None yet

4 participants