Skip to content

Conversation

@jyyyeung
Copy link
Contributor

Added a new feature which translates country names when locale changes (#515). Country names will fallback to English when translation is not found.

Makes use of django-cities and can be extended to also get country names in different languages.

image

@vercel
Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adventurelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 8:32am

@seanmorley15
Copy link
Owner

Hi @jyyyeung, I have been thinking this would be a useful feature as well! Although, I think that there is an easier way. The dataset used for the countries and regions contains translations for the country names. I think that if there is a DB field added for this it would be easier then the frontend could read the name accordingly. This would prevent the extra packages and make it more integrated with the existing system. Let me know if this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQUEST] Translation of Country and location names according to selected locale

2 participants