perf: Modify i18n for settings module. (#12543)

Co-authored-by: Bai <baijiangjie@gmail.com>
This commit is contained in:
fit2bot
2024-01-15 19:41:50 +08:00
committed by GitHub
parent fcb4c6a972
commit fdaec3c959
7 changed files with 29 additions and 38 deletions

View File

@@ -19,7 +19,7 @@ class AnnouncementSerializer(serializers.Serializer):
CONTENT = serializers.CharField(label=_("Content"))
LINK = serializers.URLField(
required=False, allow_null=True, allow_blank=True,
label=_("More url"), default='',
label=_("More URL"), default='',
)
def to_representation(self, instance):
@@ -75,7 +75,7 @@ class ChatAISettingSerializer(serializers.Serializer):
required=False, label=_('Enable Chat AI')
)
GPT_BASE_URL = serializers.CharField(
max_length=256, allow_blank=True, required=False, label=_('Base Url')
max_length=256, allow_blank=True, required=False, label=_('Base URL')
)
GPT_API_KEY = EncryptedField(
max_length=256, allow_blank=True, required=False, label=_('API Key'),