Skip to content

Port components to ts 4 #2723

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Port components to ts 4 #2723

wants to merge 8 commits into from

Conversation

RoyEJohnson
Copy link
Contributor

@RoyEJohnson RoyEJohnson commented Apr 1, 2025

() => new Intl.DisplayNames([language], {type: 'language'}),
[language]
const text = React.useMemo(
() => (new Intl.DisplayNames([language], {type: 'language'})).of(locale),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't support browsers so old that Intl.DisplayNames isn't supported, so I took the fallback out.

@RoyEJohnson RoyEJohnson force-pushed the port-components-to-ts-4 branch from a8d3c58 to 9d295f0 Compare May 1, 2025 22:00
@RoyEJohnson RoyEJohnson requested a review from jivey May 5, 2025 17:19
@RoyEJohnson RoyEJohnson force-pushed the port-components-to-ts-4 branch from 9d295f0 to f073d46 Compare May 5, 2025 19:39
@RoyEJohnson RoyEJohnson force-pushed the port-components-to-ts-4 branch from f073d46 to a2054a7 Compare May 9, 2025 15:51
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 this pull request may close these issues.

2 participants