Open this example in the interactive library
Source code
console.log(new Intl.DisplayNames("en", { type: "language" }).of("fr-CA"));
Sample output
Canadian French

Open this example in the interactive library
console.log(new Intl.DisplayNames("en", { type: "language" }).of("fr-CA"));
Canadian French