Skip to content

[I18n] Inject Intl Polyfill to PhantomJS#25465

Merged
LeanidShutau merged 8 commits intoelastic:masterfrom
LeanidShutau:fix/i18n-inject-intl-to-phantom
Nov 16, 2018
Merged

[I18n] Inject Intl Polyfill to PhantomJS#25465
LeanidShutau merged 8 commits intoelastic:masterfrom
LeanidShutau:fix/i18n-inject-intl-to-phantom

Conversation

@LeanidShutau
Copy link
Copy Markdown
Contributor

@LeanidShutau LeanidShutau commented Nov 9, 2018

Bug
PhantomJS doesn't have Intl property in the global object, so react-intl throws
[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in
error.

Fix
Inject Intl polyfill from intl package

@LeanidShutau LeanidShutau added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Project:i18n labels Nov 9, 2018
@LeanidShutau LeanidShutau self-assigned this Nov 9, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-platform

@azasypkin azasypkin added zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Nov 9, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app

@LeanidShutau LeanidShutau added the WIP Work in progress label Nov 9, 2018
@LeanidShutau LeanidShutau changed the title [wip][skip ci][I18n] Inject Intl Polyfill to PhantomJS [I18n] Inject Intl Polyfill to PhantomJS Nov 12, 2018
@LeanidShutau LeanidShutau force-pushed the fix/i18n-inject-intl-to-phantom branch from 8fafb62 to c46409c Compare November 12, 2018 08:21
@LeanidShutau LeanidShutau removed the WIP Work in progress label Nov 12, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau
Copy link
Copy Markdown
Contributor Author

retest

@LeanidShutau LeanidShutau added the WIP Work in progress label Nov 12, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@LeanidShutau LeanidShutau added v6.6.0 and removed WIP Work in progress labels Nov 15, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@azasypkin azasypkin requested a review from tsullivan November 15, 2018 13:35
@azasypkin
Copy link
Copy Markdown
Contributor

Hey @tsullivan,

Would you mind taking a look at this PR and let us know if it looks good to you?

Thanks!

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@maryia-lapata maryia-lapata left a comment

Choose a reason for hiding this comment

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

LGTM.
@LeanidShutau thank you for fixing this issue!

@LeanidShutau LeanidShutau merged commit e446097 into elastic:master Nov 16, 2018
@LeanidShutau LeanidShutau deleted the fix/i18n-inject-intl-to-phantom branch November 16, 2018 08:06
LeanidShutau added a commit to LeanidShutau/kibana that referenced this pull request Nov 16, 2018
* [I18n] Inject Intl Polyfill to PhantomJS

* Refactor injection code

* Move intl to "dependencies"

* Move 'intl' to the root 'package.json'

* Fix polyfills paths

* Move intl to x-pack package.json
LeanidShutau added a commit that referenced this pull request Nov 16, 2018
* [I18n] Inject Intl Polyfill to PhantomJS

* Refactor injection code

* Move intl to "dependencies"

* Move 'intl' to the root 'package.json'

* Fix polyfills paths

* Move intl to x-pack package.json
@LeanidShutau
Copy link
Copy Markdown
Contributor Author

6.x/6.6: afbc1ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Project:i18n Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 zDeprecated Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants