'How can I get the name of a country in its language abbreviation in Android?

I have abbreviations for each language such as jpn, eng, ind, kor, etc.

Can you tell me the name of the country with this?

What is the best way to check each one with a switch statement?



Solution 1:[1]

Find a premade JSON response something like this JSON list of all countries and then create a data class .. Use that data class to find the abbreviation or vice versa.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Narendra_Nath