Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
angular-l10n
Advanced tools
Readme
An Angular library to translate messages, dates and numbers
This library is for localization of Angular apps. 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.
Get the changelog by releases.
TranslationModule
to translate textsLocalizationModule
to translate texts, dates & numbersLocalizationExtraModule
new features of Intl API like collator and relative timeLocaleValidationModule
for number validation by localesLocaleSeoModule
for SEO by localesLocaleInterceptorModule
for setting the locale in Accept-Language header on outgoing requestslanguage[-script][-country]
strict
TypeScript compiler option compliantFeature | Angular Official | ngx-translate External library | angular-l10n External library |
---|---|---|---|
Messages | Html attributes, message IDs | directives, impure pipes | directives, pure pipes |
File formats | XLIFF, XMB/XTB | JSON | JSON |
No bootstrap (when language changes) | not yet | yes | yes |
Getting the translation in component class | not yet | yes | yes |
Numbers | pure pipes using CLDR | - | directives & pure pipes via Intl API |
Dates | pure pipes using CLDR | - | directives & pure pipes via Intl API |
Validation | - | - | numbers validation via Intl API |
You can add angular-l10n
to your project using npm
:
npm install angular-l10n --save
Angular v8
Angular v7 (Angular l10n v7.2.0)
Angular v6 (Angular l10n v5.2.0)
Angular v5 (Angular l10n v4.2.0)
Angular v4 (Angular l10n v3.5.2)
Angular v2 (Angular l10n v2.0.11)
MIT
FAQs
Unknown package
We found that angular-l10n demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.