cleanup in frontend localization system

This commit is contained in:
vabene1111
2025-04-26 22:40:53 +02:00
parent 491b5beded
commit 25c369d400
2 changed files with 6 additions and 44 deletions

View File

@@ -2135,7 +2135,7 @@ class LocalizationViewSet(viewsets.GenericViewSet):
def list(self, request, *args, **kwargs):
langs = []
for l in settings.LANGUAGES:
langs.append({'code': l[0], 'language': l[1]})
langs.append({'code': l[0], 'language': f'{l[1]} ({l[0]})'})
return Response(LocalizationSerializer(langs, many=True).data)