Questions tagged [angular-localize]
46 questions
0
votes
0 answers
Angular localize question --> is it possible to use in memory hash-map instead of e.g. Json File
I just started with the localize topic. I get it running and it works very well. I use JSON as a source.
Now my question. Is it possible to use a in-memory e.g. map for the translations instead of the JSON File
My use case:
User logs into the…

Deficiency
- 1
- 1
0
votes
1 answer
Angular/localize: How to vary string based on value from server?
I have an angular application that manage many domains: "LEGAL", "ARCHITECTURE", "GENERAL". I'm also using @angular/localize package. Now I'm in trouble with a problem.
I have a server response that tells me the domain, if the domain is "LEGAL" all…

Andy88
- 647
- 2
- 9
- 21
0
votes
0 answers
Angular Localize-How to customize i18n key based on domain?
I'm developing an application with multiple domains: "Commercial", "Legal", etc. I'm using Angular/localize to translate my app. I have a service that send me a response based on this domain. My focus is to store this value in my ngrx store and use…

Andy88
- 647
- 2
- 9
- 21
0
votes
0 answers
i18n legacy-migrate missing IDs in mapping
I am in the middle of migrating a bunch of angular apps from v11 to v14/15, but I hit a problem when running ng extract-i18n --format=legacy-migrate (with enableI18nLegacyMessageIdFormat=true in tsconfig) to migrate the legacy i18n IDs.
A lot of…

Lumpenstein
- 1,250
- 1
- 10
- 27
0
votes
0 answers
Localized bundle generation failed: Cannot read properties of undefined (reading 'file') - Angular Localize
I've installed the angular localize package, and it's working locally, but when I try to build to production I got this error:
Localized bundle generation failed: Cannot read properties of undefined (reading 'file')
I'm using the Angular: 10.2.5.…

Stark
- 65
- 2
- 9
0
votes
0 answers
Serving localized versions with @angular/localize
I am a bit confused about how i should set up my multilingual website using @angular/localize.
The angular docs mention this for deploying on a webserver:
https://angular.io/guide/i18n-common-deploy
However, my type of hosting does not allow me to…

Davy
- 6,295
- 5
- 27
- 38
0
votes
2 answers
Webpack raw-loader not working after Angular update
I have recently updated my Angular application to V12. I am using Angular's own Internationalization library @angular/localize. I am using webpack's raw-loader to load the xlf translation files as a string in my main.ts using the following…

Ali Turab Abbasi
- 1,103
- 8
- 22
0
votes
1 answer
How to manage base href with angular/localize
I implemented internationalization in my angular project taking advantage of angular/localize module.
Now I have one bundle per language. If I launch the angular build I have two folders: en and it.
If I put in the browser the relative paths:…

Andy88
- 647
- 2
- 9
- 21
0
votes
1 answer
Angular localize confusion
I am trying to work with angular localize on one project but I am confused about its usage.
Lets say I have code like this.
$localize`:@@text-to-translate:IAmText}`
Now if I understand it correctly it first try to use translate from json file with…
user11038353
0
votes
1 answer
Mat-tab angular-localize proper way to translate
Lets say i have mat tam created like this
How can i translate that label?
user11038353
0
votes
1 answer
How to add localization in Angular Library using localize?
I want to add localization in my custom angular library. It must be done using localize(not ngx-translate). I tried localize documentation nut it is not creating translation files.
When I run 'ng i18n --output-path src/locale' it gives an error.
Ivy…

Muhammad Usman
- 361
- 3
- 16
0
votes
0 answers
create an angular app in two languages with dynamic content
I need to create an Angular app in English and Spanish so I am thinking to use angular localize with i18n. I am reading the documentation but my app has a panel administrator to create rooms update and delete them. I have to create for each…

Rafael Hernández
- 354
- 1
- 2
- 14
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…

Adam Boczula
- 1
- 1
0
votes
1 answer
Angular: 11.2.12 multi language localise on page refresh goes to main language
I have 2 version.
1- default mysite.com/
2- nl mysite.com/nl/
When I'm in the nl site mysite.com/nl/ if the pages is refreshed it goes to mysite.com/
I do have a a condition which is when the path: '' should redirect to dashboard like…

Juliano Vargas
- 284
- 2
- 19
0
votes
1 answer
angular localize of an array of objects
I have an array of object inside my angular component like the following:
export class Result implements OnInit {
sortBy = [
{ id: 'total', name: 'Sort by Price' },
{ id: 'time', name: 'Fast tour' },
{ id: 'delDate',…

Errand
- 121
- 9