I have some problems when translating my OpenSearch Dashboards app to my language. It works all fine, but the reporting plugin does not. When I navigate using the side bar it works, but the Reporting button inside a dashboard/search/visualization disappears!!
Hi @alexc,
what tool are you using to translate the app?
Is the butting missing in the developer console?
As far as I can see the “Reporting” button isn’t different from the rest, so it’s not clear why this particular one would be missing.
Thanks, Patryk
Hi, @Patryk1, thanks for replying!
I have a .i18nrc file inside Opensearch Dashboards’ root folder, with this line at the end:
“translations”: [“translations/es.json”]. Also, in the .yml config file I specify “es” as i18n.locale.
Additionally in the reports plugin folder, C:.…\opensearchDashboards\plugins\reportsDashboards, I have a “translations” folder with file “es.json” containing the translations. In the reports folder I have also another file 18nrc.json with the same line as before, “translations”: [“translations/es.json”].
As I mentioned before, when I restart my app it appears translated. If I navigate to reporting using the side bar it works correctly, the plugin is translated. However, in dashboards and saved searches, the “Reporting” button does not appear. If I delete the config for translating, when the app is in English, the button shows again. The only thing that I see that is different between this button and the rest is the following, when I look at the html code (inside a dashboard):
As you can see, the only difference I see is that the reporting button does not have a “data-test-subj” elem, instead it has an id, “downloadReport”. I have tried many things, changing the location of folders, the content of the i18nrc files and it doesn’t work. Do you have any idea?