Created
June 3, 2023 02:44
-
-
Save chriswitko/75e837447794919fd65e0ad824f63256 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const regions = ['pl'] | |
const displayNames = new Intl.DisplayNames('pl', {type: 'region'}) | |
export default function App() { | |
return ( | |
<main> | |
<select> | |
{regions.map((code) => ( | |
<option key={code} value={code}>{displayNames.of(code)}</option> | |
))} | |
</select> | |
</main> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment