fix: Translate Account already exists

pull/14145/head
feng 2024-09-13 18:32:06 +08:00
parent 85129da942
commit 9cb9e7328b
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class AccountCreateUpdateSerializerMixin(serializers.Serializer):
instance.save()
return instance, 'updated'
else:
raise serializers.ValidationError('Account already exists')
raise serializers.ValidationError(_('Account already exists'))
def create(self, validated_data):
push_now = validated_data.pop('push_now', None)