Questions tagged [angular-localize]
46 questions
2
votes
1 answer
How can I update only the lodash package a child dependent(required dependency package for babel/core) from lodash@4.17.19 to v4.17.21
Recently lodash package reported a security vulnerability issue on the github page. You can find details here. https://github.com/lodash/lodash/issues/5083.
This latest version of lodash has security vulnerability of Command Injection…

Sats
- 1,913
- 1
- 15
- 21
1
vote
0 answers
Angular Universal Prerender with angular Localization i18n deploy to IIS
I am using Angular 15,, with universal, ,and angular localization....
Before using angular localization I was able to deploy the app successfully by moving whatever in the server file into the root of my website,,,and keep the deployed structure as…

Mo Bdair
- 243
- 1
- 5
- 17
1
vote
1 answer
Angular 9 - How to localize deployUrl in architect build options
I have an Angular 9 app with two languages, defined like:
"i18n": {
"sourceLocale": "hu",
"locales": {
"en": "src/locale/messages.en.xlf"
}
}
And I have baseHref and deployUrl defined in…

Dombi Bence
- 746
- 7
- 23
1
vote
0 answers
How to get one build for localization with @angular/localize?
I've started an angular application. First it will only be available in english but then we will have to add translation. We started to use @angular/localize just to not have to go through the whole application when we will add other languages.
I…

J4N
- 19,480
- 39
- 187
- 340
1
vote
1 answer
Angular App not running because of localization
I have an application which was working till a few days back. The application uses localization. Everything looked perfect. Suddenly it stopped working and started giving me this error.
Uncaught Error: It looks like your application or one of its…

iShah
- 119
- 2
- 14
1
vote
0 answers
How to use APP_BASE_HREF with @angular/localize
I am setting up @angular/localize for my application but I do not understand how to use both APP_BASE_HREF and @angular/localize. I am using this in my app.module.ts to set up APP_BASE_HREF.
providers: [
{ provide: APP_BASE_HREF, useValue:…

Ali Turab Abbasi
- 1,103
- 8
- 22
1
vote
0 answers
@angular/localize: How to use interpolation in templates?
I'm using @angular/localize to translate labels in my application.
Say this is my translation file:
{
"locale": "en-US",
"translations": {
"WELCOME_MESSAGE": "Hi {$NAME}! Welcome to {$APP_NAME}!!"
}
}
When translating in…

displayName
- 986
- 16
- 40
1
vote
1 answer
Supplemental string resource files in Angular i18n
I'm working on an app that needs to be able to switch the name for a specific entity based on an admin flag. This doesn't vary by locale, but just that flag. For example, let's say the site has widgets. After a rebranding, we decide to call them…

Arian Kulp
- 831
- 8
- 31
1
vote
1 answer
Angular localize in jasmine unit test
I am trying to test translation in angular with jasmine. I am using angular localize but I do not know how to use it inside jasmine/karma unit tests. I trigger language change via URL parameter which is suitable for e2e tests where it works fine.…

Juraj Jakubov
- 291
- 4
- 13
1
vote
0 answers
Angular translation extraction fails
I am using Angular 10 in one of my projects, I am not able to use localization in the project.
Here are the steps I followed:
First of all I added the localization package using ng add @angular/localize
Then I added the i18n attribute in one of my…

Awais Ashraf
- 258
- 1
- 2
- 12
1
vote
1 answer
Angular localize: a duplicated app for every language?
Some years ago I used @ngx-translate for dealing with string replacement in my Angular application.
Now I need to internationalize my application and although @ngx-translate still seems to be the better choice I would give a chance* to the Angular…

smartmouse
- 13,912
- 34
- 100
- 166
1
vote
2 answers
loading additional scss files or code based on the chosen locale
I'm writing an angular 11 universal application with localization.
what I'm trying to achieve is to be able to load more scss files based on the locale chosen.
so for example if the user chose Hebrew it will add styles-he.scss that added…

ufk
- 30,912
- 70
- 235
- 386
0
votes
0 answers
Switch locale in Storybook while using @angular/localize AOT
I have an Angular 16 app that uses the @angular/localize package to internationalize this app.
I also use Storybook in my development workflow, but I'm having a hard time combining the two.
I'm unable to figure out how to switch locales in Storybook…

Jimbob
- 1
- 1
0
votes
0 answers
Angular localize running on single instance
I am trying to run angular localize on ssr instead of ngx-translate. For now I can do ng serve --configuration=en-US and application is served in language I choose. But how can I do it on single instance running that user should be able to change…

Juraj Jakubov
- 291
- 4
- 13
0
votes
0 answers
Angular Localise package - Not changing currency symbol
So I've installed the package, marked everything for translation, added translation files, this is all working as expected.
Here is my angular.json file...
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
…

orangejuice
- 183
- 1
- 13