feat: added translations for country names#516
Open
jyyyeung wants to merge 2 commits intoseanmorley15:mainfrom
Open
feat: added translations for country names#516jyyyeung wants to merge 2 commits intoseanmorley15:mainfrom
jyyyeung wants to merge 2 commits intoseanmorley15:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.