03-22-2021 06:07 AM
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)
06-17-2021 02:18 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.