Skip to content

Commit 41f3fa2

Browse files
Paul LeclercqPaul Leclercq
authored andcommitted
suggest removing momentjs.local('lang')
1 parent 97cef1c commit 41f3fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/js/i18nService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app.factory('I18nService', function() {
1010
I18nService.prototype.init = function init(lang){
1111
this.language = lang;
1212
//moment init
13-
moment.locale(this.language);
13+
moment.locale(this.language); //@TODO maybe to remove, it should be handle by the user's application itself, and not inside the directive
1414

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

0 commit comments

Comments
 (0)