mdb angular - i18n implementation


Topic: mdb angular - i18n implementation

parthoens asked 6 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 6 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
  • User: 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