rbalet / ngx-translate-multi-http-loader

A loader for ngx-translate that loads translations with http calls
MIT License
77 stars 15 forks source link

Use with standalone components #32

Closed mtabaj closed 9 months ago

mtabaj commented 11 months ago

Hi, I used this library without problems before, but now I need to use it in a standalone project, with standalone components. I can't find how to declare it in the standalone component.

I declare it in the app.config :

importProvidersFrom(TranslateModule.forRoot({
      defaultLanguage: 'fr',
      loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpBackend],
      },
    })),

But in each component I need to declare the files to use. Can you help me, please ?

rbalet commented 11 months ago

Hi there @mtabaj

It looks to me like you wanted to open this question in the ngx-translate library

Or did I missunderstand the question ?

Closing the issue, feel free to reopen it

mtabaj commented 11 months ago

Hi @rbalet, I think it's inherent to this library. I don't want to reload ngx-translate, I want just change the json files to load. But may be I'm wrong...

rbalet commented 11 months ago

@mtabaj I'd be stunned about that, but could be worth giving it a look.

Can you please make me a stackblitz or anything that would help me having a reproducible error. That way I could dig deeper into it.

Kindly regards

rbalet commented 9 months ago

Hi @mtabaj, I'm closing this issue as I do not have had any comment from your side.

Feel free to open it again.

Cheers