Language navigation
This commit is contained in:
parent
3a8ddd7afd
commit
df7be31ee7
3 changed files with 2 additions and 1 deletions
0
publichealth/home/templatetags/__init__.py
Normal file
0
publichealth/home/templatetags/__init__.py
Normal file
|
@ -5,7 +5,7 @@ from django.utils import translation
|
|||
register = template.Library()
|
||||
|
||||
# Language switcher
|
||||
@register.inclusion_tag('home/templates/tags/language.html', takes_context=True)
|
||||
@register.inclusion_tag('tags/language.html', takes_context=True)
|
||||
def language_switcher(context):
|
||||
return {
|
||||
'languages': [ { 'code': 'de', 'title': 'De' }, { 'code': 'fr', 'title': 'Fr' } ],
|
||||
|
|
|
@ -25,6 +25,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR)
|
|||
|
||||
INSTALLED_APPS = [
|
||||
'publichealth.home',
|
||||
'publichealth.home.templatetags',
|
||||
'publichealth.search',
|
||||
|
||||
'wagtail.contrib.wagtailsearchpromotions',
|
||||
|
|
Loading…
Reference in a new issue