Home > Back-end >  Get country main language by country code
Get country main language by country code

Time:12-17

Is there a way i can get a country main language by its country code? I need something like countries-list npm package which gives me a list of spoken language codes by a country code. An example of what i mean: 'en' => 'English'

CodePudding user response:

You can use this Rest Api for country : https://restcountries.com/

  • Related