Skip to content

Show the name of countries in other languages than default when using i18n translation system #379

Answered by SmileyChris
Rahimz asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like this is more of a standard django translation issue than a django-countries one.

In this case specifically, probably ensuring you're in english when you're rendering the data (or the form, if that's where you're wanting it in english)

{% language 'en' %}
    <p>{{ person.country }}</p>
{% endlanguage %}

See Django's docs on switching language in templates.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SmileyChris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #375 on March 14, 2022 22:15.