Skip to content

Conversation

@simonemazzoni
Copy link
Contributor

Hello,
this PR resolve the issue that causes the library not to work properly with updated versions of humanize-duration as pointed in #222

The fix is pretty simple as you can see from the code.

I also removed the moment.locale(this.language) line to prevent unwanted side effects on users moment.locale settings since it sets the language globally.

It is better to tell users to set the language themselves invoking a moment.locale('wanted_language_code') instead of force it from the directive.

Hope this is good with you.
Let me know if there are questions.

Please, can also update the npm package?

Thanks
Simone

Removed moment.locale setting to prevent unwanted side effects on users moment.locale settings.
@simonemazzoni
Copy link
Contributor Author

simonemazzoni commented Mar 8, 2017

@siddii Also please, consider to add humanize-duration as dependency since it is fundamental to make angular-timer works with i18n.

@siddii siddii merged commit 8d10339 into siddii:master Mar 9, 2017
@simonemazzoni simonemazzoni deleted the fix_humanize-duration-3.1.0-compatibility branch March 10, 2017 08:08
@simonemazzoni
Copy link
Contributor Author

@siddii is possible to update the version to 1.3.5 with a tag and update also npm accordingly?

Thanks

@siddii
Copy link
Owner

siddii commented Mar 16, 2017

@simonemazzoni - Its tagged and published on npm - https://www.npmjs.com/package/angular-timer

Sorry for the delay.

@simonemazzoni
Copy link
Contributor Author

Great!! Thanks ;)

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.

2 participants