Skip to content

Commit

Permalink
Use translate for languages
Browse files Browse the repository at this point in the history
  • Loading branch information
M97Chahboun committed Mar 5, 2024
1 parent 8e8430a commit 5626950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/helpers/language_switcher.html
Expand Up @@ -14,7 +14,7 @@
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<button name="language" value="{{ language.code }}" type="submit" class="cursor-pointer flex flex-row gap-2 mx-1 px-3 py-1.5 rounded hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-gray-200 w-full">{{ language.name }}</button>
<button name="language" value="{{ language.code }}" type="submit" class="cursor-pointer flex flex-row gap-2 mx-1 px-3 py-1.5 rounded hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-gray-200 w-full">{% trans {{ language.name }} %}</button>
{% endfor %}
</form>
</nav>
Expand Down

0 comments on commit 5626950

Please sign in to comment.