Skip to content

add basic support for hu and lt localizations - #864

Merged
kossnocorp merged 5 commits into
date-fns:masterfrom
Ryanair:master
Sep 18, 2018
Merged

kossnocorp merged 5 commits into
date-fns:masterfrom
Ryanair:master

Conversation

@izifortune

Copy link
Copy Markdown
Contributor

No description provided.

DESKTOP-QF4TFRB\HP and others added 2 commits August 30, 2018 12:19

@kossnocorp kossnocorp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix the comments and also add an entry to the change log: https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md

Comment thread src/esm/locale/index.js Outdated
Comment thread src/locale/index.js Outdated
Comment thread src/locale/hu/index.js
Comment thread src/locale/lt/index.js
@kossnocorp

Copy link
Copy Markdown
Member

@leshakoss, please take a glance.

@reyrodrigez reyrodrigez mentioned this pull request Sep 18, 2018

@kossnocorp kossnocorp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That is looking good, thank you guys for your work!

@kossnocorp
kossnocorp merged commit a5420d6 into date-fns:master Sep 18, 2018
@@ -0,0 +1,135 @@
var formatDistanceLocale = {
lessThanXSeconds: {
one: translate,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have a feeling that this could be improved somehow. formatDistance file doesn't has to have this exact structure

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oops, this is already merged 😀

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

have a feeling that this could be improved somehow. formatDistance file doesn't has to have this exact structure

@leshakoss could you please elaborate what do you mean by that? Guys could improve in following PRs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this case formatDistanceLocale object is not really needed because the logic is handled by translate function below

@kossnocorp

Copy link
Copy Markdown
Member

I'm going to release a new version soon. Stay tuned!

@kossnocorp

Copy link
Copy Markdown
Member

I've just published a new version with this locale date-fns@2.0.0-alpha.18. See the change log: https://gist.github.com/kossnocorp/a307a464760b405bb78ef5020a4ab136#v200-alpha18

Thank you again for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants