Localization Support for Transloco
This library brings a localization support for Transloco lib, by using native Javascript's
Internalization api.
Select any locale from the list to see his format:
Date Format
- Regular date: {{ date | translocoDate }}
-
Long date: {{ date | translocoDate: { dateStyle: 'long', timeStyle: 'long' } }}
-
Full date: {{ date | translocoDate: { dateStyle: 'full', timeStyle: 'full' } }}
-
Date in timezone UTC: {{ date | translocoDate: { timeZone: 'UTC', timeStyle: 'full' } }}
-
Unix timestamp time date: {{ 1 | translocoDate: { dateStyle: 'medium', timeStyle: 'medium' } }}
-
String format to date: {{ '2019-02-08' | translocoDate: { dateStyle: 'medium', timeStyle: 'medium' } }}
Number Format
- Decimal number: {{ 1234567890 | translocoDecimal }}
-
Decimal without grouping: {{ 1234567890 | translocoDecimal: { useGrouping: false } }}
- Percentage number: {{ 1 | translocoPercent }}
Currency Format
- Symbol currency: {{ 1000000 | translocoCurrency }}
-
Name currency: {{ 1000000 | translocoCurrency: 'name' }}
-
Custom digit formatted currency:
{{ 1000000 | translocoCurrency: 'symbol':{ minimumFractionDigits: 0 } }}