Topic: mdb angular - i18n implementation

marc parthoens free asked 5 years ago


Hi,

I try to implement i18 n html translation following the tutorial contained in
https://github.com/ngx-translate/core#installation

I get error message cannot find translate in 

<liclass="nav-item">
<aclass="nav-link waves-light"mdbWavesEffect>
<iclass="fa fa-comments-o"></i>
<spanclass="clearfix d-none d-sm-inline-block">{{
'navbar.searchanimal' | translate
}}</span>
</a>
</li>
Can you help?

 


Arkadiusz Idzikowski staff answered 5 years ago


Hello,

Is this a full error message? Did you add TranslateModule.forRoot() to your app.module file?

According to the ngx-translate documentation you should add parameter to the translate pipe, here is an example:

https://www.npmjs.com/package/@ngx-translate/core#installation



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: mac
  • Browser: chrome
  • OS: mojave
  • Provided sample code: No
  • Provided link: No
Tags