Skip to content

Commit cc4540c

Browse files
committed
Don't set moment locale.
Angular-timer shouldn't set the moment locale, which can override other places where the user is setting the moment locale.
1 parent 345f55c commit cc4540c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/angular-timer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,9 @@ app.factory('I18nService', function() {
376376
this.language = this.fallback;
377377
}
378378

379+
// Require user to set moment locale independently of angular-timer.
379380
//moment init
380-
moment.locale(this.language); //@TODO maybe to remove, it should be handle by the user's application itself, and not inside the directive
381+
//moment.locale(this.language); //@TODO maybe to remove, it should be handle by the user's application itself, and not inside the directive
381382

382383
//human duration init, using it because momentjs does not allow accurate time (
383384
// momentJS: a few moment ago, human duration : 4 seconds ago

0 commit comments

Comments
 (0)