The language to search for
Optional
The options
The fields to keep in the response
The matching countries
Search among the countries by their language
const countries = await searchByLanguage('english');const countries = await searchByLanguage('english', { fields: ['name', 'capital'] }); Copy
const countries = await searchByLanguage('english');const countries = await searchByLanguage('english', { fields: ['name', 'capital'] });
The language to search for