perf: translate (#13347)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2024-06-03 10:26:12 +08:00
committed by GitHub
parent a313753757
commit 510dc1eaf2
5 changed files with 890 additions and 1075 deletions

View File

@@ -54,10 +54,13 @@ class ChangeSecretAutomationSerializer(AuthValidateMixin, BaseAutomationSerializ
'ssh_key_change_strategy', 'passphrase', 'recipients', 'params'
]
extra_kwargs = {**BaseAutomationSerializer.Meta.extra_kwargs, **{
'accounts': {'required': True},
'accounts': {'required': True, 'help_text': _('Please enter your account username')},
'recipients': {'label': _('Recipient'), 'help_text': _(
"Currently only mail sending is supported"
)},
'params': {'help_text': _(
"Secret parameter settings, currently only effective for assets of the host type."
)},
}}
@property