Skip to content

[Canvas] Internationalize Functions#36252

Merged
clintandrewhall merged 6 commits intoelastic:masterfrom
clintandrewhall:i18n-functions
May 12, 2019
Merged

[Canvas] Internationalize Functions#36252
clintandrewhall merged 6 commits intoelastic:masterfrom
clintandrewhall:i18n-functions

Conversation

@clintandrewhall
Copy link
Copy Markdown
Contributor

@clintandrewhall clintandrewhall commented May 8, 2019

Summary

This implements localization for Canvas Functions.

This PR creates a strongly-typed dictionary of strings, allowing us to know if any strings are missing or misapplied. It also replaces some types with TS enums, which will make maintenance easier.

Testing

You can pass the test locale to the start script:

yarn start --i18n.locale=en-xa

Screen Shot 2019-05-09 at 5 37 12 PM
Screen Shot 2019-05-09 at 5 37 20 PM
Screen Shot 2019-05-09 at 5 37 56 PM

@clintandrewhall clintandrewhall added WIP Work in progress Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.0.0 v7.2.0 labels May 8, 2019
@clintandrewhall clintandrewhall requested a review from a team as a code owner May 8, 2019 04:54
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@clintandrewhall clintandrewhall changed the title [WIP] Canvas Function i18n [Canvas] Internationalize Functions May 9, 2019
@clintandrewhall clintandrewhall added review and removed WIP Work in progress labels May 9, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

This looks and works great for me.

I learned a lot looking through how you were able to do the types for this.

@clintandrewhall
Copy link
Copy Markdown
Contributor Author

Thanks so much, @crob611 !!

@clintandrewhall clintandrewhall merged commit ecd19d0 into elastic:master May 12, 2019
clintandrewhall added a commit to clintandrewhall/kibana that referenced this pull request May 12, 2019
* Initial commit

* Refactor: divide and conquer

* Parameterize help definitions for translation

* Bug fixes

* Redundant naming removed
clintandrewhall added a commit that referenced this pull request May 12, 2019
* Initial commit

* Refactor: divide and conquer

* Parameterize help definitions for translation

* Bug fixes

* Redundant naming removed
@clintandrewhall clintandrewhall deleted the i18n-functions branch August 30, 2019 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants