15 lines
377 B
Python
15 lines
377 B
Python
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
def normalized_language_code(value: str | None) -> str:
|
|
lang = (value or '').strip().split('-')[0].lower()
|
|
return lang or 'de'
|
|
|
|
|
|
REQUEST_STATUS_CHOICES = [
|
|
('submitted', _('Eingereicht')),
|
|
('processing', _('In Bearbeitung')),
|
|
('completed', _('Abgeschlossen')),
|
|
('failed', _('Fehlgeschlagen')),
|
|
]
|