Find countries, states and capitals in plain text.
-
Updated
May 19, 2026 - Python
Find countries, states and capitals in plain text.
Guesses the user's regional parameters on-device, in a reliable way.
Client & server locale detection from browser signals and HTTP headers - country, language, confidence scoring. Zero dependencies, single file.
Add a description, image, and links to the country-detection topic page so that developers can more easily learn about it.
To associate your repository with the country-detection topic, visit your repo's landing page and select "manage topics."