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

i18n - allow plugins to specify multiple paths #46578

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

legrego
Copy link
Member

@legrego legrego commented Sep 25, 2019

Summary

Currently, plugins can only specify a single path in the .i18nrc.json file. This PR allows for multiple paths to be specified per plugin (i.e., per prefix), which facilitates migrating plugins to the new platform (see #46181). This way, plugins can be defined in both the legacy and new platforms during a migration, without having to specify a new prefix just for the migration period.

This code was extracted from #46181, so a working example can be found there.

@legrego legrego requested a review from a team as a code owner September 25, 2019 12:45
@legrego legrego mentioned this pull request Sep 25, 2019
7 tasks
@legrego legrego requested a review from Bamieh September 25, 2019 13:04
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Bamieh
Copy link
Member

Bamieh commented Sep 25, 2019

Gonna pull the code and test it locally, changes LGTM looking at the PR

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

src/dev/i18n/config.ts Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM

@legrego legrego merged commit 0ec11b6 into elastic:master Sep 26, 2019
@legrego legrego deleted the i18n/support-multiple-paths branch September 26, 2019 14:37
legrego added a commit to legrego/kibana that referenced this pull request Sep 26, 2019
* allow plugins to specify multiple paths

* use native Array.flat instead of _.flatten()
legrego added a commit that referenced this pull request Sep 26, 2019
* allow plugins to specify multiple paths

* use native Array.flat instead of _.flatten()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants