mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
cleanup in frontend localization system
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user