Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Angular 2 AoT rollup moment locale

Does anybody know how apply a moment.js locale with AoT and rollup? In systemjs.config.js defined moment-with-locales.js doesn't work with:

 //in systemjs.config.js.

'moment': 'npm:moment/min/moment-with-locales.js',

//in component:
import moment from 'moment';

this.moment.locale('de');
let formattedDate = this.moment(value).format('L');

and gives the default result in 'en'.

In the rollup-config.js:

plugins: [
        nodeResolve({jsnext: true, module: true}),
        commonjs({
            include: [
                'node_modules/rxjs/**',
                'node_modules/moment/min/**',
            ]
        }),
        uglify()
    ]

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!