angular-i18n Questions

4

Solved

I am upgrading from Angular 8.0 to Angular 9.1.1. With a little bit of work, everything builds and runs fine. I ran into the localization issue https://angular.io/guide/migration-localize and fol...
Comestible asked 14/4, 2020 at 16:26

3

Solved

Since Angular 9 we can use $localize`Hello ${name}:name:` For i18n in typescript code. This still has some limitations as the ng xi18n command does not detect the strings, but if these texts are...
Barbey asked 9/3, 2020 at 8:54

4

Solved

I currently define "LOCALE_ID" on "en-US" this way: @NgModule({ providers: [{ provide: LOCALE_ID, useValue: "en-US" }, ...], imports: [...], bootstrap: [...] }) and it works pretty well. Howe...
Stibnite asked 26/9, 2017 at 6:12

3

I'm developing an app in two different languages (fa/en) using Angular Internationalization (i18n). The target is to deploy the two different builds into sub-folders on the server (example.com/en...
Retsina asked 14/3, 2020 at 14:46

4

Solved

I was playing with Angular's localization @angular/localize and after configuring it to translate the app to different language I tried to serve the default version of it using 'ng serve' but I get...
Doings asked 30/6, 2020 at 16:28

4

Solved

I am trying to learn and add Angular Internationalization in a project. I can understand only compile time translation from angular documents (https://angular.io/guide/i18n-overview). I need some t...

5

Solved

I am an Angular beginner, I read the documentation of Angular, and it's hard for such an elementary thing... I want that the dates and other things in my application have the French locale, and not...
Saladin asked 21/9, 2018 at 8:56

2

So i have a angular 11 application where i just implemented localization with angulars default i18n middleware. To create an initial file i just ran : ng extract-i18n myprojectName --format xlf --o...
Guardi asked 23/4, 2021 at 19:20

5

Solved

I have problem with angular v9. I have implemented i18n localization features into my app. When I try to build my application with certain location it constantly adds the sub-folder to the base hre...
Exogenous asked 11/2, 2020 at 13:36

2

I am using i18n to translate my Angular 2 application. I need to send a variable to a translation unit from ts. I have the following trans-unit: <trans-unit id="summary_hotel_tax" datatype="ht...
Parameter asked 6/5, 2020 at 12:40

4

Solved

I am currently in the process of adding en locale to an Angular App we are using at my company. After some thinking we decided to go with the Angular 5+ native i18n support. From how I understand i...
Saiva asked 5/4, 2018 at 15:10

3

I have prepared applications with localized language versions. For this purpose I used the native Angular i18n module, which prepared two application packages with the appropriate language in each....

1

Solved

Is it possible to use variables in an angular template i18n string? In TypeScript I can use template string, eg: public welcomeMessage = $localize`:@@test.welcome: Hello ${this.name}:user_name:! Ho...
Druid asked 13/10, 2021 at 9:16

1

I am using my application in three languages using @angular/localize and I am having trouble in the time take to deploy the server. The reason being that even though all locale use same assets, the...
Acosta asked 31/7, 2020 at 14:33

6

We have to wait until Angular 6 for angular-i18n to support translations in code for error messages and such. For those that are using angular-i18n (instead of ngx-translate for instance) what are...
Prudhoe asked 18/1, 2018 at 17:47

1

Solved

I do have Multilanguage support in my application and would like to implement translation for the angular material date picker. I have used dateAdapter class from material and set the values but wh...

5

Solved

I am getting this strange warning Locale data for 'en-US' cannot be found. No locale data will be included for this locale when running ng build --configuration=prod --localize here is my angul...
Fiji asked 28/12, 2019 at 20:41

3

Solved

I have an Angular application which I can deploy to Azure App Service without any issues. First I compile my application using the following command: ng build --output-path=dist --aot -prod The...

1

Solved

Due to Angular update, I have problem with locales. For now: import localePl from '@angular/common/locales/pl'; registerLocaleData(localePl); It's working but causes an error: WARNING in app.modu...
Proud asked 29/6, 2020 at 17:45

3

There is a situation where an input is defined on a child component like the following: interface MyValues { text: string; path: string; someOtherValue: string; } @Input() myValues: MyValues; ...
Lamori asked 30/8, 2019 at 21:5

2

Short question Can I have an input element where the placeholder text changes depending on the state of the component? Longer question Angular has the possibility to add i18n through the follo...
Laniary asked 3/7, 2019 at 11:29

2

Solved

I'm in the process of migrating an angular 7 application to angular 9, which uses server side rendering (angular universal) and angular i18n for 2 languages (french and english). In the old angula...

2

Solved

I'm trying to build an application that supports multiple languages – up to 20 actually. The default language is en-US. During the build the translated versions are created which works fine. Howe...
Undenominational asked 2/3, 2020 at 15:43

0

In our Angular app, we are using the Angular i18n mechanism to mark strings as translatable in the component-HTML and we use ng xi18n to extract the translatable strings and write them to a xlf fil...
Shekinah asked 6/2, 2020 at 13:10

1

I am developing a web app and I need to add multi-language support. I went through the Angular documentation and I noticed that the translation was occurring at build time. I was curious if we can ...
Pelotas asked 23/1, 2020 at 12:25

© 2022 - 2024 — McMap. All rights reserved.