Skip to content

Instantly share code, notes, and snippets.

@zahlenhelfer
Created February 1, 2019 12:20
Show Gist options
  • Select an option

  • Save zahlenhelfer/d5910b25b2f09a765f190323451d1659 to your computer and use it in GitHub Desktop.

Select an option

Save zahlenhelfer/d5910b25b2f09a765f190323451d1659 to your computer and use it in GitHub Desktop.
Angular - i18n - Locale
<td>{{book.price | currency:'EUR':'symbol':'1.2-2':'de-DE'}}</td>
import { registerLocaleData } from '@angular/common';
import localeDe from '@angular/common/locales/de';
import localeDeExtra from '@angular/common/locales/extra/de';
registerLocaleData(localeDe, 'de-DE', localeDeExtra);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment