but I can not use any localization. moment.locale("…") command is not change language.
moment.locale('en'); // set to english
moment.locale(); // returns 'en'
moment.locale('fr'); // set to french
moment.locale(); // returns 'en'
moment.locale('de'); // set to d.
moment.locale(); // returns 'en'
always returns en.
I guess localization part is not import or include. So how to import localization part?
I run into the same problem with ionic2 RC0, but import “moment/locale/de”; didn’t worked. moment.locale() returned always en.
I solved the problem by directly import the es6 code from the src folder:
import moment from ‘moment’;
import ‘moment/src/locale/de’;
moment.locale(‘de’);
console.log(moment.locale()); //–> returns now correctly de