You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alex-pl commented 5 hours ago
I could solve the locale problem for an Angular 2 project (ES6) as well as for an Ionic 2 app.
Import a single locale:
import moment from 'moment';
import 'moment/locale/de';
Import all locales:
import moment from 'moment';
import 'moment/min/locales.min';
The locale import and setting of moment.locale('de'); is only required in the main component (eg. main.js, app.js).
It's possible to use moment in portuguese, for example? How I can do that? Thanks!
The text was updated successfully, but these errors were encountered: