0

I got an error when running my app in IIS: myServer/assets/i18n/de.json not found. How to add the Transloco translation files in production mode?

Christoph1972
  • 786
  • 3
  • 10
  • 21

1 Answers1

0

Adding a fullstop to ./assets/i18n in transloco-root.module.ts fixed my problem.

getTranslation(lang: string) {
    return this.http.get<Translation>(`./assets/i18n/${lang}.json`);}
Christoph1972
  • 786
  • 3
  • 10
  • 21