Skip to content

[I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat#26468

Merged
LeanidShutau merged 16 commits intoelastic:masterfrom
LeanidShutau:feature/i18n-relative-format-locale-data
Dec 18, 2018
Merged

[I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat#26468
LeanidShutau merged 16 commits intoelastic:masterfrom
LeanidShutau:feature/i18n-relative-format-locale-data

Conversation

@LeanidShutau
Copy link
Contributor

Fixes: #26237

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

Pinging @elastic/kibana-platform

@elasticmachine
Copy link
Contributor

💔 Build Failed

@spalger
Copy link
Contributor

spalger commented Nov 30, 2018

Hmm, is this supposed to include so many fewer locales?

@azasypkin azasypkin changed the title [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat [skip-ci][wip][I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat Nov 30, 2018
@azasypkin azasypkin added the WIP Work in progress label Nov 30, 2018
@azasypkin
Copy link
Contributor

azasypkin commented Nov 30, 2018

Hmm, is this supposed to include so many fewer locales?

No it's just WIP (I just marked it like so), we're discussing right now which locales to include. Here is the list we need to support for not too distant future:

  • en
  • zh (first priority for Kibana)
  • ja
  • de
  • fr
  • ko
  • es-419

@LeanidShutau LeanidShutau changed the title [skip-ci][wip][I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat Dec 4, 2018
@LeanidShutau LeanidShutau removed the WIP Work in progress label Dec 4, 2018
@LeanidShutau
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@LeanidShutau LeanidShutau force-pushed the feature/i18n-relative-format-locale-data branch from 8995eca to b4cf637 Compare December 5, 2018 10:56
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
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 with two comments.
I've checked locally, it works as excepted.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@LeanidShutau LeanidShutau requested a review from Bamieh December 11, 2018 10:58
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@azasypkin azasypkin left a comment

Choose a reason for hiding this comment

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

LGTM with one optional suggestion. Also can you please check that FormatRelative works with Phantom reporting as expected (in Chinese for example)?

@LeanidShutau LeanidShutau removed the request for review from Bamieh December 13, 2018 08:36
@LeanidShutau LeanidShutau requested a review from a team as a code owner December 17, 2018 11:41
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

Security plugin LGTM!

@LeanidShutau
Copy link
Contributor Author

<FormattedRelative> doesn't work in PhantomJS PDF reporting because of issues with Intl polyfill. Currently we don't plan to use <FormattedRelative> in any code that may be used for reporting, so this issue can be postponed and separated from this PR.
#27373

@LeanidShutau LeanidShutau merged commit eefde19 into elastic:master Dec 18, 2018
@LeanidShutau LeanidShutau deleted the feature/i18n-relative-format-locale-data branch December 18, 2018 10:25
LeanidShutau added a commit that referenced this pull request Dec 21, 2018
#26468)

* [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat

* Update locales

* Add default relative formats

* Fix en locale formats

* Update readme

* Make setFormats public

* Update snapshots

* Resolve comments

* Update locales list

* Update snapshots

* Add locale data for pseudo-locale
LeanidShutau added a commit that referenced this pull request Dec 21, 2018
#26468) (#27375)

* [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat

* Update locales

* Add default relative formats

* Fix en locale formats

* Update readme

* Make setFormats public

* Update snapshots

* Resolve comments

* Update locales list

* Update snapshots

* Add locale data for pseudo-locale
@LeanidShutau
Copy link
Contributor Author

LeanidShutau commented Dec 21, 2018

6.x/6.7: 65a26c8

weltenwort added a commit that referenced this pull request Mar 18, 2019
…ent (#33146)

This replaces the custom relative time component in the Logs UI live streaming inline loading indicator with the one from `react-intl`. This was not done at the time of the initial i18n introduction (#25213), because of #26237, which apparently has since been resolved via #26468. Visual changes should be limited to `now` being shown instead of `0s ago`.
weltenwort added a commit to weltenwort/kibana that referenced this pull request Mar 18, 2019
…ent (elastic#33146)

This replaces the custom relative time component in the Logs UI live streaming inline loading indicator with the one from `react-intl`. This was not done at the time of the initial i18n introduction (elastic#25213), because of elastic#26237, which apparently has since been resolved via elastic#26468. Visual changes should be limited to `now` being shown instead of `0s ago`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Project:i18n review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v6.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants