I have a Vue component that generates various charts using Chart.js. Everything is working fine, except for one issue - I can't seem to set a locale for the date labels on the X-axis.
I attempted to set the moment locale at the beginning of the script section in my Vue component, but unfortunately, it didn't make any difference.
<script>
import * as moment from 'moment';
import 'moment/locale/ru';
moment.locale('ru');
console.log(moment.locale()); // it correctly displays the language as 'ru'!
import Chart from 'chart.js';
export default { ... this.chart = new Chart(this.context, config); ... };
</script>
^ However, even after trying this approach, the X-axis still shows labels like 'Jul 2013', 'Aug 2013', instead of 'Июл 2013', 'Авг 2013'.
Has anyone encountered this problem before and found a solution? Any help would be greatly appreciated! 🤞🏻