Questions tagged [ngx-translate-multi-http-loader]

7 questions
1
vote
0 answers

Is there a way to load static language files and also be able to load additional language resource on-demand using ngx-translator?

My application has static JSON files for most translations, but some run time data also has translations and I'd like to load that translation data on-demand using ngx-translator. Is there a way to load static files and also be able to load…
0
votes
1 answer

How do I translate a text in a property using ngx-translate

Stuck while translating a html text using ngx-translate. I am getting missing language key error. I have correctly imported the ngx-translation module into this component's module. I am confused on why the translation is…
0
votes
0 answers

ngx-Translate module not loading translate files correctly in nested module

I declare a httpLoaderFactory in my app module as follows export function HttpLoaderFactory(httpBackend: HttpBackend) { return new MultiTranslateHttpLoader(httpBackend, [ {prefix: './somepath/', suffix: '.json'} ]); } and the…
0
votes
0 answers

ngx-translate/multi-http-loader version 9 works in app module but not in others

I use the new release 9.0, it works perfectly in my app module export function HttpLoaderFactory(httpBackend: HttpBackend) { return new MultiTranslateHttpLoader(httpBackend, ['/assets/i18n/core/']); } and TranslateModule.forRoot({ loader: { provide:…
0
votes
1 answer

When changing language the route is appending to instead of just changing with chosen language

When I am changing the language the route gets appended to previous routes instead of just changing the language for exe- http://localhost:4200/en/about-us if change the language to he then it becomes http://localhost:4200/he/about-us/about-us I am…
0
votes
0 answers

Translate a JSON file using ngx-translate

I have a JSON file with static data that I want to translate it. { "id": "", "name": "text", "label": "Text", "value": "Some random text" } So I want to save my static texts to i18n files and then…
-1
votes
1 answer

ngx-translate-multi-http-loader : Something went wrong for the following translation file

I was using this library ngx-translate-multi-http-loader to being able to load multiple language file for my ionic 5 App. I didn't had any errors, but the translation wasn't working. Then I added inside the TranslateModule.forRoot({}) the…