I\'m building a website where people can associate a language information to content.
The website uses Javascript heavily and the language information associated to
There is a native support for this in the new(ish) Intl API:
let languageNames = new Intl.DisplayNames(['en'], {type: 'language'}); languageNames.of('fr'); // "French" languageNames.of('de'); // "German" languageNames.of('fr-CA'); // "Canadian French"