![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
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.
@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.1.0 (2024-01-17)
| Commit | Type | Description | | -- | -- | -- | | 79ff91a813 | fix | allow TS jsDocParsingMode host option to be programmatically set (#53126) | | 5613051a8b | fix | allow TS jsDocParsingMode host option to be programmatically set again (#53292) | | df8a825910 | fix | project empty block root node (#53620) | | 478d622265 | fix | project empty block root node in template pipeline (#53620) |
| Commit | Type | Description |
| -- | -- | -- |
| abdc7e4578 | feat | support type-checking for generic signal inputs (#53521) |
| e620b3a724 | fix | add compiler option to disable control flow content projection diagnostic (#53311) |
| 4c1d69e288 | fix | add diagnostic for control flow that prevents content projection (#53190) |
| 76ceebad04 | fix | do not throw fatal error if extended type check fails (#53896) |
| 1a6eaa0fea | fix | input transform in local compilation mode (#53645) |
| 56a76d73e0 | fix | modify getConstructorDependencies
helper to work with reflection host after the previous change (#52215) |
| Commit | Type | Description |
| -- | -- | -- |
| 863be4b698 | feat | expose new input
API for signal-based inputs (#53872) |
| 94096c6ede | feat | support TypeScript 5.3 (#52572) |
| 69b384c0d1 | fix | SignalNode
reactive node incorrectly exposing unset field (#53571) |
| 6f79507ea7 | fix | Change defer block fixture default behavior to playthrough (#53956) |
| 32f908ab70 | fix | do not accidentally inherit input transforms when overridden (#53571) |
| bdd61c768a | fix | replace assertion with more intentional error (#52234) |
| 0daca457bb | fix | TestBed should still use the microtask queue to schedule effects (#53843) |
| Commit | Type | Description |
| -- | -- | -- |
| 5c1d441029 | feat | Add info property to NavigationExtras
(#53303) |
| 50d7916278 | feat | Add router configuration to resolve navigation promise on error (#48910) |
| a5a9b408e2 | feat | Add transient info to RouterLink input (#53784) |
| 726530a9af | feat | Allow onSameUrlNavigation: 'ignore'
in navigateByUrl
(#52265) |
<a name="17.0.9"></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
Angular - library for localizing messages
The npm package @angular/localize receives a total of 681,644 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.
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.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.