1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/common/templatetags/language.py

14 lines
271 B
Python

from django.utils import translation
from django_jinja import library
from rpg_notes.settings import LANGUAGES
@library.global_function()
def language_code():
return translation.get_language()
@library.global_function()
def all_languages():
return LANGUAGES