musician only 3 languages

This commit is contained in:
Jorge Pastor 2024-11-18 12:35:25 +01:00
parent 9196674779
commit 1a1e41211b
2 changed files with 9 additions and 1 deletions

View file

@ -6,6 +6,7 @@ from django.views.generic.base import ContextMixin
from orchestra import get_version
from . import api
from .settings import LANGUAGES
from .auth import SESSION_KEY_TOKEN
@ -29,7 +30,8 @@ class CustomContextMixin(ContextMixin):
context.update({
'services_menu': services_menu,
'version': get_version(),
'languages': settings.LANGUAGES,
# 'languages': settings.LANGUAGES,
'languages': LANGUAGES,
})
return context

View file

@ -70,3 +70,9 @@ MUSICIAN_WEBSITES_ENABLE_GROUP_DIRECTIVE = Setting('MUSICIAN_WEBSITES_ENABLE_GRO
),
help_text="Valid groups: HTTPD, ModSecurity, SSL, SaaS"
)
LANGUAGES = [
('en', 'English'),
('es', 'Spanish'),
('ca', 'Catalan'),
]