Angular 6 – i18n vs. ngx-translate

Is it too new to take on? This is opinion-based, and thus off-topic Apparently I have to have a separate website You need a separate application (i.e. index.html + bundles). But you could serve all those applications from a single URL, deciding which one to serve on the server. That will (hopefully) change with Angular … Read more

Angular 5 internationalization

After spending time looking into this, I thought I’d post the main differences I found between ngx-translate and Angular-i18n: Angular only works with one language at a time, you have to completely reload the application to change the lang. The JIT support only means that it works with JIT, but you still have to provide … Read more

Missing locale data for the locale “XXX” with angular

In file app.module.ts … import { NgModule, LOCALE_ID } from ‘@angular/core’; import { registerLocaleData } from ‘@angular/common’; import localeFr from ‘@angular/common/locales/fr’; registerLocaleData(localeFr); @NgModule({ imports: […], declarations: […], bootstrap: […], providers: [ { provide: LOCALE_ID, useValue: ‘fr-FR’}, ] }) export class AppModule {} (source: https://next.angular.io/guide/i18n) and in your template (*.component.html) DATE in FRENCH: {{ dateEvent | … Read more