Questions tagged [angular-i18n]

angular-i18n is part of the Angular framework, which provides i18n features like localization (dates, number, percentages, and currencies), text translations, pluralization and alternative text. For the older AngularJS (1.x) web framework, use the angular-translate tag.

Angular 2+ provides its own tool for internationalization. It already supports many features, but misses some major features like lazy loading, translation outside templates etc. Those features will be available in Angular 6+.

Angular i18n Documentation

Since Angular is under development the implementation of i18n still is in progress an can be tracked on this GitHub issue: #16477

263 questions
0
votes
1 answer

How to use angular ngx-translate pipe in ngx-charts?

I want to add pipeline to my ngx-chart xAxisLabel and yAxisLabel.
Alan Yu
  • 1,462
  • 12
  • 21
0
votes
1 answer

Angular internationalization serve in development mode

I would like to get experience with the angular i18n (https://angular.io/guide/i18n#build-from-the-command-line). I can serve my application with one locale, it's okay. But I can't debug the application, because this is bundled. I am using Angular…
0
votes
1 answer

Angular 7 i18n support translate typescript file

Versions. "@angular-devkit/build-angular": "0.13.4", "@angular-devkit/build-ng-packagr": "0.13.4", "@angular/animations": "7.2.2", "@angular/cdk": "7.2.2", "@angular/cli": "7.3.3", "@angular/common": "7.2.6", "@angular/compiler":…
0
votes
3 answers

How to pass i18n data to a component as parameter

I don't have a lot of experience with i18n and I'm stuck with this. I have component within another component. All I want to do is to pass i18n as one of the parameters. How do I do that? Here is what I have: Component A (Parent)
MrRobot
  • 1,001
  • 1
  • 14
  • 34
0
votes
1 answer

Angular 8 Multi language website for dynamic coontents

I am trying to implement the i18n in my application using json file for language translation. I am able to successfully translate for static text. but i cant able to translate for dynamic text and text that are display in array using *ngFor…
0
votes
1 answer

matInput binded to context property conflicts with i18n extraction but not on regular serve

I have that piece of code of a reactive form that compiles right and is well executed with the matInput directive which is binded, but when I run the angular cli command for internationalisation (ng xi18n), then I got the following error ERROR in…
0
votes
0 answers

angular i18n: determine locale in rest call before directing to localized url path

In the official documentation there is a description how to configure the server for being ready for internationalization https://angular.io/guide/i18n#configuring-servers. Basically the url will be rewritten on the server-side based on the…
user2622344
  • 956
  • 1
  • 10
  • 26
0
votes
1 answer

Angular ivy i18n extraction "Missing declaration for lazy-load helper function"

I'm trying to extract i18n messages from a complex angular using the following cli command: ng extract-i18n --out-file="src/locale/messages.xlf" --format=xlf The procedure compile correctly the application but, in the extraction phase, returns a…
Luca
  • 13
  • 2
0
votes
1 answer

ngx-cookie-consent message translation with ngx-translate

I'm working on my project and basically want to implement multilang webapp. I'm using ngx-translate for that. Now I've faced an issue when trying to implement cookie bar using ngx-cookie-consent. I've got 2 languages: en|ru and when I'm clicking the…
Hack Wiz
  • 15
  • 5
0
votes
0 answers

Angular: ngIf doesn't work with condition on spanish site

Goal: Get certain text to appear with ngIF condition. Problem: It doesn't appear even though the value of the condition exists This sentence does not appear (on Spanish site): Your subscription will change from a Family Subscription to an Individual…
angleUr
  • 449
  • 1
  • 8
  • 27
0
votes
3 answers

Angular i18n with OpenID Connect

We haven an Angular application that requires authentication. It's done using OpenID Connect with an IdentityServer4 auth server. Now we want to add additional languages. The language to be used is stored in the user profile we can fetch from our…
Christoph Lütjen
  • 5,403
  • 2
  • 24
  • 33
0
votes
1 answer

Problems with ng xi18n when adding new tags

I'm using ´ng xi18n --output-path locale --out-file translations.en.xlf´ in the CLI to generate an xlf file, as per the the official Angular documentation - https://angular.io/guide/i18n. That all works well. The docu then further suggests to…
Bernhard Engl
  • 243
  • 1
  • 2
  • 12
0
votes
0 answers

I want to clean the console of the error: "GET http: // localhost: 4200 / assets / i18n / 1 / en 404 (Not Found)" @ Angular

I want to clean the console of the error: GET http: // localhost: 4200 / assets / i18n / 1 / en 404 (Not Found) I want to clean the console of the error: GET http: // localhost: 4200 / assets / i18n / 1 / en 404 (Not…
wiem khardani
  • 53
  • 1
  • 11
0
votes
2 answers

i18n $localize in angular ts file

Good morning, I'm using Angular 10 and i18n package to translate my app. I have already made all the localization for the template files and is working perfectly on the prod server. The problem is that I'm trying to localize as well strings on the…
kokorosama
  • 31
  • 4
0
votes
1 answer

Can using regular expression in ngx-translate i18n json file using Angular 8?

I want to use regex in i18n file, something like below: "device /some dynamic word/ is here": "دستگاه /some dynamic word/ اینجاست" And when using a key like below: {{"device x33 is here"|translate}} It should be translate to: دستگاه x33 اینجاست I…
Mostafa Farhani
  • 305
  • 2
  • 16