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

Add <FormattedDisplayName> & formatDisplayName Support #1547

Closed
septs opened this issue Dec 27, 2019 · 3 comments · Fixed by #1567
Closed

Add <FormattedDisplayName> & formatDisplayName Support #1547

septs opened this issue Dec 27, 2019 · 3 comments · Fixed by #1567
Assignees

Comments

@septs
Copy link

septs commented Dec 27, 2019

Chromium 81 available Intl.DisplayNames

see https://chromestatus.com/feature/4965112605573120
see https://github.com/tc39/proposal-intl-displaynames
see https://tc39.es/proposal-intl-displaynames

sample code:

<FormattedDisplayName type="region" value="US" /> // -> "United States"

intl.formatDisplayName("US", { type: "region" }) // -> "United States"
@longlho
Copy link
Member

longlho commented Dec 27, 2019

Because we support IE11, we typically don't support features that don't have polyfills. You can create an issue in formatjs/formatjs repo requesting a polyfill to get that process started.

@longlho
Copy link
Member

longlho commented Jan 29, 2020

@pyrocat101 mind taking this over?

@pyrocat101
Copy link
Member

@longlho sounds good

pyrocat101 added a commit to pyrocat101/react-intl that referenced this issue Feb 2, 2020
longlho pushed a commit that referenced this issue Feb 4, 2020
* feat: add formatDisplayName and FormattedDisplayName

Fixes #1547

* add docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants