Browse Source

Merge pull request #11561 from jumpserver/pr@dev@perf_i18n

perf: 优化翻译
pull/11568/head
老广 1 year ago committed by GitHub
parent
commit
5cbbf9e737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/authentication/backends/passkey/serializer.py
  2. 4
      apps/locale/zh/LC_MESSAGES/django.mo
  3. 2
      apps/locale/zh/LC_MESSAGES/django.po
  4. 4
      apps/settings/serializers/auth/base.py

2
apps/authentication/backends/passkey/serializer.py

@ -7,7 +7,7 @@ class PasskeySerializer(serializers.ModelSerializer):
class Meta:
model = Passkey
fields = [
'id', 'name', 'is_active', 'created_by',
'id', 'name', 'is_active', 'platform', 'created_by',
'date_last_used', 'date_created',
]
read_only_fields = list(set(fields) - {'is_active'})

4
apps/locale/zh/LC_MESSAGES/django.mo

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75605427042ba75f9ff8e3da6f073495fdd8df18a3b340fa0c178936141d0263
size 130198
oid sha256:1c741e666932f64ed2196c4e196081b825e6e53bde3719dbd137d6cd9dbbbae8
size 130201

2
apps/locale/zh/LC_MESSAGES/django.po

@ -4825,7 +4825,7 @@ msgstr "只有 SSL 域名可以使用 Passkey(通行密钥)认证"
#: settings/serializers/auth/passkey.py:15
msgid "FIDO server ID"
msgstr "Passkey 服务 ID"
msgstr "Passkey 服务域名"
#: settings/serializers/auth/passkey.py:17
msgid ""

4
apps/settings/serializers/auth/base.py

@ -19,13 +19,11 @@ class AuthSettingSerializer(serializers.Serializer):
AUTH_FEISHU = serializers.BooleanField(default=False, label=_('FeiShu Auth'))
AUTH_WECOM = serializers.BooleanField(default=False, label=_('WeCom Auth'))
AUTH_SSO = serializers.BooleanField(default=False, label=_("SSO Auth"))
AUTH_PASSKEY = serializers.BooleanField(default=False, label=_("Passkey Auth"))
FORGOT_PASSWORD_URL = serializers.CharField(
required=False, allow_blank=True, max_length=1024,
label=_("Forgot password url")
)
# HEALTH_CHECK_TOKEN = serializers.CharField(
# required=False, max_length=1024, label=_("Health check token")
# )
LOGIN_REDIRECT_MSG_ENABLED = serializers.BooleanField(
required=False, label=_("Enable login redirect msg")
)

Loading…
Cancel
Save