Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@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
17.0.7 (2023-12-13)
| Commit | Type | Description | | -- | -- | -- | | 4fd5409090 | fix | handle ambient types in input transform function (#51474) |
| Commit | Type | Description | | -- | -- | -- | | a603338fe8 | fix | generate less type checking code in for loops (#53515) |
| Commit | Type | Description | | -- | -- | -- | | 58ed76be93 | fix | Avoid refreshing a host view twice when using transplanted views (#53021) | | c16b5e8290 | fix | Multiple subscribers to ApplicationRef.isStable should all see values (#53541) | | 17dbf8b8e2 | fix | remove signal equality check short-circuit (#53446) | | 5b4add27b6 | fix | update feature usage marker (#53542) | | 68d111c841 | perf | avoid changes Observable creation on QueryList (#53498) | | 044cb553b4 | perf | optimize memory allocation when reconcilling lists (#52245) |
| Commit | Type | Description | | -- | -- | -- | | 96ab999698 | fix | CF Migration - ensure bound ngIfElse cases ignore line breaks (#53435) | | c9a1c6f1c7 | fix | cf migration - undo changes when html fails to parse post migration (#53530) | | b75aca1d74 | fix | CF migration only remove newlines of changed template content (#53508) | | e88a12d5b3 | fix | cf migration validate structure of ngswitch before migrating (#53530) | | 543df3dca5 | fix | ensure we do not overwrite prior template replacements in migration (#53393) | | d232ea143f | fix | fix cf migration import removal when errors occur (#53502) |
| Commit | Type | Description | | -- | -- | -- | | d5c631bf36 | fix | Get correct base path when using "." as base href when serving from the file:// protocol. (#53547) |
| Commit | Type | Description | | -- | -- | -- | | e750e4edcf | fix | provide more actionable error message when route is not matched in production mode (#53523) |
<!-- CHANGELOG SPLIT MARKER --><a name="17.0.6"></a>
FAQs
Angular - library for localizing messages
The npm package @angular/localize receives a total of 563,656 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.