
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@angular/localize
Advanced tools
@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>
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.
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
19.0.1 (2024-11-26)
| Commit | Type | Description | | -- | -- | -- | | fb1fa8b0fc | fix | more accurate diagnostics for host binding parser errors (#58870) |
| Commit | Type | Description | | -- | -- | -- | | 502ee0e722 | fix | correctly clear template HMR internal renderer cache (#58724) | | 99715104a1 | fix | correctly perform lazy routes migration for components with additional decorators (#58796) | | 118803035f | fix | Ensure _tick is always run within the TracingSnapshot. (#58881) | | 08b9452f01 | fix | Ensure resource sets an error (#58855) | | 84f45ea3ff | fix | make component id generation more stable between client and server builds (#58813) | | d3491c7cee | fix | Prevents race condition of cleanup for incremental hydration (#58722) |
| Commit | Type | Description | | -- | -- | -- | | 4dfe5b6cef | fix | work around TypeScript 5.7 issue (#58731) |
| Commit | Type | Description | | -- | -- | -- | | a983865bff | fix | add fix for individual unused imports (#58719) | | e6e7a4e22b | fix | allow fixes to run without template info (#58719) |
| Commit | Type | Description | | -- | -- | -- | | 5ce10264a4 | fix | fix provide-initializer migration when using useFactory (#58518) | | d4f5c85f60 | fix | handle parameters with initializers in inject migration (#58769) | | a6d2d2dc10 | fix | Mark hoisted properties as removed in inject migration (#58804) |
<!-- CHANGELOG SPLIT MARKER --><a name="19.0.0"></a>
FAQs
Angular - library for localizing messages
The npm package @angular/localize receives a total of 839,961 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 2 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.