Gathering detailed insights and metrics for angular2localization
Gathering detailed insights and metrics for angular2localization
Gathering detailed insights and metrics for angular2localization
Gathering detailed insights and metrics for angular2localization
npm install angular2localization
Typescript
Module System
Node Version
NPM Version
TypeScript (93.97%)
HTML (4.99%)
JavaScript (0.78%)
SCSS (0.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
380 Stars
728 Commits
58 Forks
26 Watchers
15 Branches
11 Contributors
Updated on Jun 28, 2025
Latest Version
1.4.2
Package Id
angular2localization@1.4.2
Size
73.70 kB
NPM Version
4.1.1
Node Version
6.2.2
Published on
Jan 30, 2017
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
33
An Angular 2 library to translate messages, dates and numbers.
This library is developed using TypeScript and Angular 2 for i18n and l10n of Angular 2 apps written in TypeScript, ES5 or ES6. It allows, in addition to translation, to localize numbers and dates of your app, adding language code, country code, 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 2 Material, AoT compilation & webpack, and its source code.
Get the changelog by releases.
Angular version: ^2.4.0
Feature | Angular 2 Native | ng2-translate External library | angular2localization External library |
---|---|---|---|
Messages | Html attribute, Message ID | Html attribute, impure pipe | Html attribute, pure pipe |
File formats | XLIFF, XMB/XTB | JSON | JSON |
No bootstrap (when language changes) | no | yes | yes |
Getting the translation in component class | not yet | yes | yes |
Numbers | pure pipe via Intl | - | Html attribute & pure pipe via Intl |
Dates | pure pipe via Intl | - | Html attribute & pure pipe via Intl |
Validation | - | - | numbers validation |
You can add angular2localization
to your project using npm
:
1npm install --save angular2localization
1System.config({ 2 paths: { 3 'npm:': 'node_modules/' 4 }, 5 map: { 6 app: 'app', 7 // angular bundles 8 ... 9 // other libraries 10 'rxjs': 'npm:rxjs', 11 'angular2localization': 'npm:angular2localization/bundles/angular2localization.umd.min.js' 12 }, 13 packages: { 14 app: { 15 format: 'cjs', 16 main: './main.js', 17 defaultExtension: 'js' 18 }, 19 rxjs: { 20 defaultExtension: 'js' 21 } 22 } 23 });
No need to set up anything, just import it in your code.
No need to set up anything, just import it in your code.
Using Ionic 2 with this library.
Using Angular 2 Meteor with this library.
If you build apps in Angular 2 using ES5, you can include the umd
bundle in your index.html
:
1<script src="node_modules/angular2localization/bundles/angular2localization.umd.min.js"></script>
and using global ng.angular2localization
namespace. For a basic usage, see this ES5 example.
This library is compatible with AoT compilation, just import it in your code.
See quick start and library specification.
Angular 2 Localization with an ASP.NET CORE MVC Service @damienbod
In order to build the library if you want to contribute to it:
1npm install 2 3npm test 4 5npm run build
To test locally the npm package:
1npm pack ./dist
Then you can install it in your app to test it:
1npm install [path]angular2localization-[version].tgz
##License MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 2/14 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
58 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More