I am implementing Russian language into my charts which work fine with other languages. I am using russian resource js file. Here is some of my code:
Plotly.register({
moduleType: 'locale',
name: 'ru',
format: defineCustomLocale('ru')
});
function defineCustomLocale (name) {
var format;
switch (name) {
case ‘ru’:
format = {
date: “%d/%m/%Y”,
decimal: “,”,
thousands: " ",
year: “%Y”,
month: “%b %Y”,
dayMonth: “%-d %b”,
dayMonthYear: “%-d %b %Y”
};
break;
};
return format;
What I see on the screen is this:
But what should have been for month name is this:
Апр
Any idea why it is not translating?
Thanks