![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
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/localize
Advanced tools
Package description
@angular/localize is an Angular package that provides localization support for Angular applications. It allows developers to easily translate their applications into different languages and manage translations efficiently.
Extracting Translatable Strings
This command extracts translatable strings from your Angular application and generates a translation file (e.g., messages.xlf). This file can then be used to provide translations for different languages.
ng extract-i18n
Translating Application
This command serves the application using a specific translation file (e.g., French). The application will display the translated strings based on the provided translation file.
ng serve --configuration=fr
Marking Strings for Translation
This code snippet shows how to mark a string for translation using the `i18n` attribute. The string 'Hello, world!' will be extracted and can be translated into different languages.
<p i18n>Hello, world!</p>
ngx-translate/core is a library for Angular that provides a robust solution for internationalization (i18n). It allows you to dynamically load translations and switch between languages at runtime. Compared to @angular/localize, ngx-translate/core offers more flexibility in terms of loading and managing translations.
angular-translate is another popular library for AngularJS (1.x) that provides i18n support. It allows you to define translations in JSON files and switch between languages dynamically. While it is not compatible with Angular (2+), it offers similar functionalities for AngularJS applications.
i18next is a powerful internationalization framework for JavaScript applications, including Angular. It provides a wide range of features for managing translations, including support for pluralization, context, and interpolation. Compared to @angular/localize, i18next is more versatile and can be used with various JavaScript frameworks.
Changelog
17.0.6 (2023-12-06)
| Commit | Type | Description | | -- | -- | -- | | a2e5f483f5 | fix | generate proper code for nullish coalescing in styling host bindings (#53305) |
| Commit | Type | Description | | -- | -- | -- | | 66ecf4c274 | fix | add compiler option to disable control flow content projection diagnostic (#53387) | | 74e6ce5d23 | fix | add diagnostic for control flow that prevents content projection (#53387) | | 6ec7a42b95 | fix | avoid conflicts with built-in global variables in for loop blocks (#53319) |
| Commit | Type | Description |
| -- | -- | -- |
| 0a53f96094 | fix | cleanup signal consumers for all views (#53351) |
| 4fc1581bbc | fix | handle hydration of multiple nodes projected in a single slot (#53270) |
| 14e66533ec | fix | support hydration for cases when content is re-projected using ng-template (#53304) |
| 8e366e8911 | fix | support swapping hydrated views in @for
loops (#53274) |
| Commit | Type | Description | | -- | -- | -- | | 45064f1ae1 | fix | CF migration - ensure NgIfElse attributes are properly removed (#53298) | | a6275cfa54 | fix | CF Migration - Fix case of aliases on i18n ng-templates preventing removal (#53299) | | 58a96e0f50 | fix | CF Migration add support for ngIf with just a then (#53297) | | 26e40c7f89 | fix | CF Migration fix missing alias for bound ngifs (#53296) | | 836aeba01d | fix | Change CF Migration ng-template placeholder generation and handling (#53394) | | 72d22ba7ee | fix | fix regexp for else and then in cf migration (#53257) | | 7a2facae8a | fix | handle aliases on bound ngIf migrations (#53261) | | 5104a89b30 | fix | handle nested ng-template replacement safely in CF migration (#53368) | | 2a4e3f5373 | fix | handle templates outside of component in cf migration (#53368) | | 0db75ab5b1 | fix | remove setting that removes comments in CF migration (#53350) |
| Commit | Type | Description | | -- | -- | -- | | 13ade13a15 | fix | Ensure canMatch guards run on wildcard routes (#53239) |
<!-- CHANGELOG SPLIT MARKER --><a name="17.0.5"></a>
Readme
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT
FAQs
Unknown package
The npm package @angular/localize receives a total of 691,125 weekly downloads. As such, @angular/localize popularity was classified as popular.
We found that @angular/localize demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.