Hi,
i have following message after upgrading from 3.5 to 3.9 : TypeError: this.customLoader.setDefaultLang is not a function. The only thing I add is "TranslateModule.forRoot()" in app.module...
"@alfresco/adf-content-services": "3.9.0",
"@alfresco/adf-core": "3.9.0",
"@alfresco/adf-insights": "3.9.0",
"@alfresco/adf-extensions": "3.9.0",
"@alfresco/js-api": "3.9.0",
"@ngx-translate/core": "^11.0.1",
I add in AppModule:
TranslateModule.forRoot()
What is missing ?
Thanks in advance
Edit:
line error : new TranslationService (adf-core.js:4664)
Hello,
Upgrading from 2.5 to 3.7, I got the same TypeError.
It was a forRoot() problem, as it turned out. I shouldn't have put the TranslateModule.forRoot in SharedModule.
David Steedman
Nochbesser editor-in-chief
https://essays.agency/ my educational tools
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.