#SSR - Possible bug with Intl.DisplayNames of type region

2 messages · Page 1 of 1 (latest)

brisk matrix
#

Hello !

I face an issue with Intl on SSR.
When using new Intl.DisplayNames("en", { type: "region" }) and then console.log(regionNames.of("fr")) I get a different result on the server comparing to the client, as shown in the screenshot.

Note that it works as intended with the types language and currency.

You can test it yourself by cloning this repo : https://github.com/Kheuval/intl-reproduction

Thanks for your help !

GitHub

Contribute to Kheuval/intl-reproduction development by creating an account on GitHub.

broken torrent
#

Sometimes it depends on the node version installed and also how the installed version is compiled. More commonly, node is shipped with a small data set for internationalisation features (explained here https://nodejs.org/docs/latest-v22.x/api/intl.html).

What is the output if you run node -p "process.versions.icu" ?