Skip to main content

Questions tagged [ngx-translate]

NGX-Translate is an internationalization library for Angular 2+. It lets you define translations for your content in different languages and switch between them easily.

ngx-translate
0 votes
0 answers
22 views

Using ngxTranslate with PrimeNG dropdown breaks after migrating from Angular v16 to v18

DESCRIPTION I've just upgraded from Angular v16 to v18. All is working fine, except for the translation of my dropdown items. I'm using ngxTranslate for this, together with my own implementation of ...
Bramist's user avatar
  • 113
0 votes
0 answers
40 views

Use TraslateService in standalone components accross Angular microfrontends and Webpack Module Federation

Which is the best way to use the TraslateService (ngx-translate) accross microfrontends in an Angualar application with Webpack Module Federation using standalone components? I was importing ...
Marco24690's user avatar
1 vote
1 answer
44 views

No query params in custom translation loader in Angular

Im currently work on app where we need to use different branding and translations. For that, I need to get some information from the query params and this is working fine for getting all assets (...
chastain's user avatar
1 vote
1 answer
149 views

PrimeNG dropdown filtering multilanguage options

We're using Angular v16 with PrimeNG 16 and NGX-Translate v15. Translating is working fine, however, filtering is problematic. The label usually comes in codetable code for example "some.resource....
Marek's user avatar
  • 63
1 vote
0 answers
51 views

build localized variant applications using ngx-translate (migrate ngx-translate to angular i18n)

So currently our Angular project uses the ngx-translate package to internationalize it. we have the directory src/assets/i18n/ containns ws-en.json, ws-fr.json and ws-de.json The problem: I want to ...
mnsdali's user avatar
  • 23
0 votes
1 answer
718 views

NullInjectorError, Standalone, No provider for _TranslateService Angular 17

Just like in the title. I have a problem with TranslateService when using angular 17.I only use components. And when I try to use TranslateService, I'm getting this error: `main.ts:5 ERROR ...
Milenka's user avatar
0 votes
1 answer
54 views

Angular-How to translate to other language without affecting Application language

I have a dialog with content and an toggle for the user to choose between 2 languges. When user switches between these languages, only the content of the dialog has to change, without affecting the ...
Shanu's user avatar
  • 21
0 votes
1 answer
149 views

Mocking TranslationService in Angular

I'm new in using Karma and unit tests in Angular and I'm struggling... I have a method I want to test when the service I'm using is returning a bad request The method is this._commandService....
Christèle Legeard's user avatar
0 votes
0 answers
34 views

Why is Ionic bypassing my XLF translation file?

I have xlf files to translate my application. My app is set to English by default, I can also switch to a French version. The tree structure is as follows: src/locale/ messages.en.xlf messages....
Angularity's user avatar
1 vote
1 answer
98 views

Jasmine - how to test HttpLoaderFactory from @ngx-translate

I'm writing Angular app with @ngx-translate dependency so I configured package according to doc: https://github.com/ngx-translate/core?tab=readme-ov-file#configuration app.module.ts import { ...
Kamil C.'s user avatar
0 votes
1 answer
2k views

"This likely means that the library (@ngx-translate/core) which declares TranslateModule is not compatible with Angular Ivy" error in Angular app

I'm getting the following error when I run npm start in my angular app, after upgrading from Angular 15 to 16 following the steps in update.angular.io This likely means that the library (@ngx-...
white-wolf97's user avatar
2 votes
1 answer
652 views

Injection error (NG0203) using ngx-translate pipe in angular 17 standalone component

We want to use ngx-tanslate in our angular-17 project, where we have no modules and only standalone components. We get the following error: ERROR Error: NG0203: inject() must be called from an ...
Chriss's user avatar
  • 5,429
-1 votes
1 answer
996 views

upgradation in angular 17 causes translate pipe

enter image description here`I have upgraded my project to angular 17 and getting error for pipe. No pipe found with name 'translate'. have below code in app module with required imports. And ...
Shaila's user avatar
  • 1
14 votes
2 answers
11k views

Use @ngx-translate in standalone components in Angular 17

I use standalone components in Angular 17. When I used module architecture, I didn't have this problem. I added it to import in AppModule and it works good. imports: [ TranslateModule.forRoot(loader) ...
FX_Sektor's user avatar
  • 1,410
0 votes
1 answer
200 views

Angular "@ngx-translate/core" library TranslateModule is declared in the root but not overrided in the Child module

I'm using "@ngx-translate/core" library to apply internationalization, I've created a helper service for it and configured it in all my modules, I also installed "ngx-translate-multi-...
Ahmed Gamal's user avatar

15 30 50 per page
1
2 3 4 5
49