2
$scope.barChartData.labels.push(moment(currentDate).format("YYYY-MM-DD") + "  
$filter('translate')('To')" + moment(currentDate).add(4, 'days').format("YYYY-MM-DD"));

trying to translate "To" word

1 Answer 1

2

Reviewing this 2 lines, i found that you are using lib chart.js

for generating chart in angularjs app. And it create a svg based on data provided. So you need to again reload that svg in html with the same process of creating svg so that it is use translation based on language selection at that time. Let me know if this solves the issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.