Skip to content

feat: added translations for country names #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

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