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

[Enterprise Search] Fix/DRY out plugin i18n strings #74323

Merged
merged 4 commits into from
Aug 5, 2020

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Aug 5, 2020

Summary

I realized while working on a separate issue that we were missing i18n translations on our plugin strings as well as our breadcrumb strings. This PR fixes that while DRYing out various plugin strings to our constants files (primarily product names).

QA

  • All front-end facing strings (e.g. App Search, Enterprise Search, Setup Guide) should remain the same as before:

Screen Shot 2020-08-04 at 5 52 41 PM

Checklist

@cee-chen cee-chen added Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Aug 5, 2020
@cee-chen
Copy link
Member Author

cee-chen commented Aug 5, 2020

@yakhinvadim / @byronhulcher - both Jason and Scotty are out this week - any chance either of you could take a quick look at this and review/✅ it? It should be fairly straightforward, mostly string constant replacements and i18n.translate() wrappers.

- DRY out plugin details to constants and correctly i18n-ize front-end-facing strings
- refactor instances of i18n.translate to use new constants
Copy link
Contributor

@yakhinvadim yakhinvadim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only 1 question:

x-pack/plugins/enterprise_search/server/plugin.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@yakhinvadim yakhinvadim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
enterpriseSearch 264.9KB -206.0B 265.1KB

page load bundle size

id value diff baseline
enterpriseSearch 19.3KB +1.7KB 17.5KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cee-chen cee-chen merged commit 47b9aba into elastic:master Aug 5, 2020
@cee-chen cee-chen deleted the i18n branch August 5, 2020 17:12
gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 6, 2020
* master: (208 commits)
  Observability Overview fix extra basepath prepend for alerting fetch (elastic#74465)
  [Lens] Clean and inline disabling of react-hooks/exhaustive-deps eslint rule (elastic#70010)
  Skip "space with index pattern management disabled" functional test for cloud env (elastic#74073)
  Filter out non-security jobs when collecting Detections telemetry (elastic#74456)
  [Security Solution][Test] Enzyme test for related events button (elastic#74411)
  [SECURITY_SOLUTION] add z-index to get over nav bar (elastic#74427)
  Rename package configs SO to package policies (elastic#74422)
  [DOCS] Add Kibana alerts to Stack Monitoring (elastic#73762)
  skip flaky suite (elastic#71390)
  [ML] DF Analytics: adds functional tests for edit form (elastic#73885)
  Rename agent configs SO to agent policies (elastic#74397)
  [Jenkins] run CI when plugin readmes change (elastic#74388)
  [Metrics UI] Fix validating Metrics Explorer URL (elastic#74311)
  fixing encoding issue with \ for enroll command (elastic#74379)
  [Ingest Manager] Update package registry for testing to f6b01d (elastic#74341)
  Change experimental message for visualizations (elastic#74354)
  [Alerting] Reload the Alerts List when alerts are deleted (elastic#73715)
  [Enterprise Search] Fix/DRY out plugin i18n strings (elastic#74323)
  update empty prompt in analytics list (elastic#74174)
  [Task Manager] Correctly handle `running` tasks when calling RunNow and reduce flakiness in related tests (elastic#73244)
  ...
cee-chen pushed a commit that referenced this pull request Aug 6, 2020
* i18n refactor

- DRY out plugin details to constants and correctly i18n-ize front-end-facing strings

* DRY out new i18n constants

- refactor instances of i18n.translate to use new constants

* Fix non-i18n'd breadcrumb strings

* PR feedback: swap out more plugin ID strings for constants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants