-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[i18n] Translations for Monitoring: Cluster and Alerts #24736
[i18n] Translations for Monitoring: Cluster and Alerts #24736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix comments
x-pack/plugins/monitoring/public/components/cluster/overview/apm_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/beats_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/beats_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/elasticsearch_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/elasticsearch_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/license_text.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/logstash_panel.js
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/logstash_panel.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/components/cluster/overview/logstash_panel.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Please fix some minor comments, and let's discuss some names of id.
x-pack/plugins/monitoring/public/directives/cluster/listing/index.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/directives/cluster/listing/index.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/directives/cluster/listing/index.js
Outdated
Show resolved
Hide resolved
x-pack/plugins/monitoring/public/directives/cluster/listing/index.js
Outdated
Show resolved
Hide resolved
LGTM |
Do I need anything setup to test this? Or maybe more broadly, how do I test this? :) |
@chrisronline you can set up a pseudo-locale to see what labels are translated. Pseudo-locale adds diacritical mark to each How to use: Set There is one more way to test translation. It's possible to check custom locale. It's more complex because this approach hasn't automated yet. Here are the steps:
To make PRs easy to review we are splitting all Monitoring translations into several PRs. So please take into account that one screen (for example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I added a couple comments/questions but this is looking great!
x-pack/plugins/monitoring/public/components/cluster/overview/apm_panel.js
Outdated
Show resolved
Hide resolved
<FormattedMessage | ||
id="xpack.monitoring.cluster.overview.esPanel.jvmHeapLabel" | ||
defaultMessage="{javaVirtualMachine} Heap" | ||
values={{ javaVirtualMachine: 'JVM' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So JVM
is not something translated, but I see Elasticsearch
not used like this, does that mean Elasticsearch
will be translated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. There is also Kibana translation glossary (https://docs.google.com/document/d/1e-lHAPAtxodP8U4gbwA3lw8FyhhW7M303--77nMpe8w/edit) that contains terms that will remain untranslated.
Mostly we put in values
such technical labels like property names url.body.query
.
statusIndicator={statusIndicator} | ||
url="elasticsearch" | ||
title={props.intl.formatMessage({ | ||
id: 'xpack.monitoring.cluster.overview.esPanel.elasticsearchTitle', defaultMessage: 'Elasticsearch' })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't Elasticsearch
be not translated, per this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it shouldn't.
I reverted this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (once tests are passing)
💔 Build Failed |
Blocked by #25465. |
💚 Build Succeeded |
* Translations for Cluster and Alerts * Translations for cluster and alerts * Translations for cluster and alerts * Fix typos * Update id * Update Notification snapshot * Translate lastEvent label * Revert changes for untranslated label.
* Translations for Cluster and Alerts * Translations for cluster and alerts * Translations for cluster and alerts * Fix typos * Update id * Update Notification snapshot * Translate lastEvent label * Revert changes for untranslated label.
Translations for Monitoring: Cluster and Alerts pages
Fixes: #24713