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
728
questions
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 ...
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 ...
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 (...
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....
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 ...
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 ...
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 ...
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....
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....
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 { ...
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-...
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 ...
-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 ...
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)
...
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-...