I upgraded lib version from 8.1.2 to 9.1.0, I've adjusted configuration, but translations are not working.
When I debug, I can see that when :
this.translationLoader.get(language, provider)
this fails :
provider.asset[language]
and this is thrown :
throwError(l10nError(L10nDefaultTranslationLoader_1, 'Asset not found'));
At this time, "providers" variable still contains
{name: "app", asset: "./assets/app"}
Don't know if this is normal, I assume that providers.asset should have been replaced with json files ?
Hi,
I upgraded lib version from 8.1.2 to 9.1.0, I've adjusted configuration, but translations are not working. When I debug, I can see that when :
this.translationLoader.get(language, provider)
this fails :
provider.asset[language]
and this is thrown :
throwError(l10nError(L10nDefaultTranslationLoader_1, 'Asset not found'));
At this time, "providers" variable still contains
{name: "app", asset: "./assets/app"}
Don't know if this is normal, I assume that providers.asset should have been replaced with json files ?Here my config in app.module.ts :
json files are in : src/assets/app-en-US.json src/assets/app-fr-FR.json
On home page template for instance I use translation like :
<h2 l10nTranslate>dashboard.introduction.news.title</h2>
And so obviously when I'm on the website I can see only keys, nothing is translated.
When I try with this provider from your example :
This is working fine.
Can you help to find what's going wrong? When I was with version 8.1.2 everything worked well. Thx