A clean, lightweight, and developer-friendly JSON dataset containing a curated list of world languages with their standardized language codes.
This repository is designed to be simple, reusable, and framework-agnostic, making it ideal for applications that need language selection, localization, translation, or internationalization support.
languages.json– A JSON array of language objects with:name– Human-readable language namecode– Standard language code (commonly used in APIs and i18n libraries)
{
"name": "English",
"code": "en"
}- ✅ 100+ commonly used global languages
- ✅ Clean and consistent JSON structure
- ✅ Ready to use in frontend & backend projects
- ✅ Suitable for dropdowns, filters, and localization settings
- ✅ Easy to extend and maintain
This dataset can be used in:
- 🌐 Internationalization (i18n) & localization
- 📝 Language selector dropdowns
- 🤖 Translation & AI applications
- 📱 Mobile and web apps
- 🧩 Configuration files
- 🔌 API integrations (Google Translate, OpenAI, etc.)
This repository can be used as a public read-only API by accessing the raw JSON file hosted on GitHub.
https://raw.githubusercontent.com/ameerzain/languages/main/languages.json
fetch('https://raw.githubusercontent.com/ameerzain/languages/main/languages.json')
.then(response => response.json())
.then(data => console.log(data));import requests
url = "https://raw.githubusercontent.com/ameerzain/languages/main/languages.json"
languages = requests.get(url).json()
print(languages)<select>
<option value="en">English</option>
<option value="fr">French</option>
</select>ℹ️ Note:
This dataset is served via GitHub Raw and is suitable for light to medium usage.
For high-traffic production environments, consider caching or self-hosting the file.
[
{
"name": "English",
"code": "en"
},
{
"name": "French",
"code": "fr"
}
]Contributions are welcome!
You can:
- Add missing languages
- Improve naming consistency
- Add region-specific variants
- Fix incorrect codes
Please open a pull request or raise an issue for discussion.
This project is open-source and available under the MIT License.
You are free to use, modify, and distribute it in personal or commercial projects.
Ameer Zain
GitHub: https://github.com/ameerzain
If you find this repository useful, consider giving it a ⭐ to support the project.
Happy coding! 🚀