Chartjs-Ng2-translate on component file combined with charts.js

0๐Ÿ‘

โœ…

I dont know in jaavascript, but in typescript you should import :

import {TranslateService} from "ng2-translate";

Load it into your constructor :

constructor(private translate : TranslateService) { }

and use it into your code like this:

this.translate.instant("global.congratulation")

This one is working to me.

Leave a comment