Socket
Socket
Sign inDemoInstall

@angular/localize

Package Overview
Dependencies
5
Maintainers
2
Versions
513
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/localize


Version published
Weekly downloads
686K
decreased by-22.46%
Maintainers
2
Created
Weekly downloads
 

Package description

What is @angular/localize?

@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.

What are @angular/localize's main functionalities?

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>

Other packages similar to @angular/localize

Changelog

Source

17.0.4 (2023-11-20)

common

| Commit | Type | Description | | -- | -- | -- | | 7f1c55755d | fix | remove load on image once it fails to load (#52990) | | fafcb0d23f | fix | scan images once page is loaded (#52991) |

compiler

| Commit | Type | Description | | -- | -- | -- | | 98376f2c09 | fix | changed after checked error in for loops (#52935) | | 291deac663 | fix | generate i18n instructions for blocks (#52958) | | 49dca36880 | fix | nested for loops incorrectly calculating computed variables (#52931) | | f01b7183d2 | fix | produce placeholder for blocks in i18n bundles (#52958) |

compiler-cli

| Commit | Type | Description | | -- | -- | -- | | f671f86ac2 | fix | add diagnostic for control flow that prevents content projection (#52726) |

core

| Commit | Type | Description | | -- | -- | -- | | db1a8ebdb4 | fix | cleanup loading promise when no dependencies are defined (#53031) | | 31a1575334 | fix | handle local refs when getDeferBlocks is invoked in tests (#52973) |

migrations

| Commit | Type | Description | | -- | -- | -- | | ac9cd6108f | fix | control flow migration fails for async pipe with unboxing of observable (#52756) (#52972) | | 13bf5b7007 | fix | Fixes control flow migration if then else case (#53006) | | 492ad4698a | fix | fixes migrations of nested switches in control flow (#53010) | | 0fad36eff2 | fix | tweaks to formatting in control flow migration (#53058) |

<!-- CHANGELOG SPLIT MARKER -->

<a name="17.0.3"></a>

Readme

Source

Angular

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

Last updated on 20 Nov 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc