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

FormattedRelative component not working with any locale except en(default) #26237

Closed
pavel06081991 opened this issue Nov 27, 2018 · 3 comments
Closed
Assignees
Labels
Project:i18n Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@pavel06081991
Copy link
Contributor

When using FormattedRelative component from react-intl library with any locale except en(which is default locale) we get an Error in console

[React Intl] Error formatting relative time.
Error: Locale data added to IntlRelativeFormat is missing `fields` for :ar-AE
@pavel06081991 pavel06081991 added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Project:i18n labels Nov 27, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@azasypkin
Copy link
Member

I guess it's only in Node and PhantomJS @pavel06081991, right? If yes, then it's the same as #20288 and #20613

@pavel06081991
Copy link
Contributor Author

@azasypkin no it is in Chrome and I guess in other browsers as well.

@LeanidShutau LeanidShutau self-assigned this Nov 29, 2018
weltenwort added a commit that referenced this issue 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 issue 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
Project:i18n Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

4 participants