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?
Asked
Active
Viewed 498 times
0

Christoph1972
- 786
- 3
- 10
- 21
1 Answers
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
-
Thanks for the tip. However, this doesn't work for me. – Tora Tora Tora Oct 14 '21 at 05:52