Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Translation not working #5306

Open
NeRX322 opened this issue Oct 16, 2023 · 6 comments
Open

[BUG] Translation not working #5306

NeRX322 opened this issue Oct 16, 2023 · 6 comments
Labels
bug Something isn't working needs more info Requires more information from poster

Comments

@NeRX322
Copy link

NeRX322 commented Oct 16, 2023

I am trying to translate dashboards to ru language, however, the format.relative do not translate.
I am using 2.7 version.
I have added translation to my translations file. Other strings translate perfectly

"relative": {
  "years": {
    "units": "год"
  },
  "months": {
    "units": "месяц"
  },
  "days": {
    "units": "день"
  },
  "hours": {
    "units": "час"
  },
  "minutes": {
    "units": "минута"
  },
  "seconds": {
    "units": "секунда"
  }
}

As far as i can tell the support for ru locale was added in issue #2816

Am i missing something?

image
@NeRX322 NeRX322 added bug Something isn't working untriaged labels Oct 16, 2023
@NeRX322
Copy link
Author

NeRX322 commented Oct 16, 2023

If i leave
"relative": {
"years": {
"units": "year"
},
"months": {
"units": "month"
},
"days": {
"units": "day"
},
"hours": {
"units": "hour"
},
"minutes": {
"units": "minute"
},
"seconds": {
"units": "second"
}
}

in translations it seems not to work too

@NeRX322
Copy link
Author

NeRX322 commented Oct 16, 2023

Also, how can i translate string like "Setting the time to "now" means that on every refresh this time will be set to the time of the refresh."? "now" etc cannot find them in code

@manasvinibs
Copy link
Member

@NeRX322 Thanks for reaching out!

Can you take a look at the DEVELOPER guide which contains example json file to add i18n localization in the Dashboards. Even after following the example, if you cannot make translations work, can you share with us the exact re-pro steps?

@manasvinibs manasvinibs added needs more info Requires more information from poster and removed untriaged labels Oct 16, 2023
@NeRX322
Copy link
Author

NeRX322 commented Oct 17, 2023

@manasvinibs
Hello!
With further investigation i found out that the locales.js add ru translations, however, that window still doesn't translate.
Can you help me find out where string like "Absolute", "Relative", "Setting the time to "now" means that on every refresh this time will be set to the time of the refresh." and "Set start date and time to now" come from? I've searched through plugins/server/dashboards and cannot seem to find them, maybe you can lead me to right direction?

P.s. I didn't paste logs because there are no errors really, and only thing i've done is changed localization

@iagoferreirati
Copy link

iagoferreirati commented Feb 26, 2024

I'm having the same issue, @NeRX322 did you manage to solve it?

@NeRX322
Copy link
Author

NeRX322 commented Feb 29, 2024

@iagoferreirati No, unfortunately not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info Requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants