Angular localization

An Angular library to translate messages, dates and numbers

This library is for localization of Angular v5 apps written in TypeScript, ES6 or ES5. It allows, in addition to translation, to localize numbers and dates of your app, adding language code, country code, currency code, timezone and optionally script code, numbering system and calendar, through Internationalization API. It also implements the validation of numbers by locales.

Sample app built with Angular CLI & Material, and its source code.

Library version: 4.1.5 - Changelog


You can add angular-l10n to your project using npm:

npm install angular-l10n --save 

To install the pre-release package:

npm install --save angular-l10n@next


Using SystemJS configuration

    map: {
        'angular-l10n': 'node_modules/angular-l10n/bundles/angular-l10n.umd.js'

Angular CLI

No need to set up anything, just import it in your code.

Rollup or webpack

No need to set up anything, just import it in your code.

Plain JavaScript

If you build apps in Angular using ES5, you can include the umd bundle in your index.html:

<script src="node_modules/angular-l10n/bundles/angular-l10n.umd.js"></script>

and use global ng.l10n namespace.

AoT compilation, Server Side Rendering & strict

This library is compatible with AoT compilation & Server Side Rendering. It also supports the strict TypeScript compiler option.