
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
angular-ecmascript-intl
Advanced tools
Contains Angular pipes to transform internationalization data using Intl.* browser APIs
Contains pipes to transform internationalization data using Intl.* browser APIs.
Install the package:
npm install angular-ecmascript-intl --save
Import the pipes individually as per usage, or import the IntlModule to import all pipes at once.
By default, all pipes will use the browser default locale.
If you want to override it, you can provide the INTL_LOCALES injection token:
import { NgModule } from "@angular/core";
import { INTL_LOCALES } from "angular-ecmascript-intl";
@NgModule({
providers: [
{
provide: INTL_LOCALES,
useValue: "de-DE",
},
],
})
export class MyModule {}
Also, every pipe accepts the locale option.
Now you can use the pipes, see below.
Use the date pipe like the following:
{{myDate | intlDate: options}}
The input date can be one of the following:
Date objectnew Date() constructor)The following options are supported:
With the INTL_DATE_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the decimal pipe like the following:
{{1.24 | intlDecimal: options}}
The input can be one of the following:
The following options are supported:
notationsignDisplayminimumIntegerDigitsminimumFractionDigitsmaximumFractionDigitsminimumSignificantDigitsmaximumSignificantDigitsWith the INTL_DECIMAL_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the percent pipe like the following:
{{0.24 | intlPercent: options}}
The input can be one of the following:
The following options are supported:
notationsignDisplayminimumIntegerDigitsminimumFractionDigitsmaximumFractionDigitsminimumSignificantDigitsmaximumSignificantDigitsWith the INTL_PERCENT_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the currency pipe like the following:
{{1.24 | intlCurrency: 'USD': options}}
The input can be one of the following:
The currency code parameter is required and must be a valid ISO 4217 currency code. If you want to transform a decimal
number instead, use the intlDecimal pipe.
The following additional options are supported:
currencyDisplaycurrencySignnotationsignDisplayminimumIntegerDigitsminimumFractionDigitsmaximumFractionDigitsminimumSignificantDigitsmaximumSignificantDigitsWith the INTL_CURRENCY_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the language pipe like the following:
{{'en-US' | intlLanguage: options}}
The input can be one of the following:
The following option is supported:
With the INTL_LANGUAGE_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the country pipe like the following:
{{'US' | intlCountry: options}}
The input can be one of the following:
Use the unit pipe like the following:
{{1.2 | intlUnit: 'hour': options}}
The input can be one of the following:
The unit parameter is required, see
the specification
for a full list of possible values. If you want to transform a decimal number instead, use the intlDecimal pipe.
The following additional options are supported:
unitDisplaynotationsignDisplayminimumIntegerDigitsminimumFractionDigitsmaximumFractionDigitsminimumSignificantDigitsmaximumSignificantDigitsWith the INTL_UNIT_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the list pipe like the following:
{{['my', 'items'] | intlList: options}}
The input can be one of the following:
The following options are supported:
With the INTL_LIST_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
The relative time format will format the input date compared to the current date in a "timeago" format. Every minute, the value will be updated automatically.
Use the relative time pipe like the following:
{{myDate | intlRelativeTime: options}}
The input date can be one of the following:
Date objectnew Date() constructor)The following options are supported:
With the INTL_RELATIVE_TIME_PIPE_DEFAULT_OPTIONS injection token you can specify default options.
Use the duration pipe like the following:
{{ { hours: 2, minutes: 53 } | intlDuration: options }}
The input can be one of the following:
The following options are supported:
For each duration unit, there is a style and display option.
This library supports the latest major version of the following browsers:
For each of those browsers, unit tests are being performed regularly.
In case you need to support older versions of that browsers, see the below table with the minimum required browser version for each pipe:
| Pipe | Chrome | Firefox | Safari |
|---|---|---|---|
| Date | 24 | 29 | 10 |
| Number | 24 | 29 | 10 |
| Percent | 24 | 29 | 10 |
| Currency | 24 | 29 | 10 |
| Language | 81 | 86 | 14.1 |
| Country | 81 | 86 | 14.1 |
| Unit | 77 | 78 | 14.1 |
| List | 72 | 78 | 14.1 |
| Relative Time | 71 | 65 | 14 |
| Duration | 129 | 136 | 16.4 |
| Angular | angular-ecmascript-intl |
|---|---|
| 20 | 6.x |
| 19 | 5.x |
| 18 | 4.x |
| 17 | 3.x |
| 16 | 2.x |
| 15 | 1.x |
For more context, see the following GitHub issue
FAQs
Contains Angular pipes to transform internationalization data using Intl.* browser APIs
The npm package angular-ecmascript-intl receives a total of 130 weekly downloads. As such, angular-ecmascript-intl popularity was classified as not popular.
We found that angular-ecmascript-intl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.