EditIdentity: improve reason text explanation

This commit is contained in:
Alex Gleason 2024-09-02 14:05:20 +02:00
parent 3a8d8e5170
commit ce3d3c97ca
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ const messages = defineMessages({
unverified: { id: 'edit_profile.fields.nip05_unverified', defaultMessage: 'Name could not be verified and won\'t be used.' },
success: { id: 'edit_profile.success', defaultMessage: 'Your profile has been successfully saved!' },
error: { id: 'edit_profile.error', defaultMessage: 'Profile update failed' },
placeholder: { id: 'edit_identity.reason_placeholder', defaultMessage: 'Why do you want this name?' },
placeholder: { id: 'edit_identity.reason_placeholder', defaultMessage: 'Why do you want to be part of the {siteTitle} community?' },
requested: { id: 'edit_identity.requested', defaultMessage: 'Name requested' },
});
@ -82,7 +82,7 @@ const EditIdentity: React.FC<IEditIdentity> = () => {
<UsernameInput value={username} onChange={(e) => setUsername(e.target.value)} disabled={isPending} />
<Textarea
name='reason'
placeholder={intl.formatMessage(messages.placeholder)}
placeholder={intl.formatMessage(messages.placeholder, { siteTitle: instance.title })}
maxLength={500}
onChange={(e) => setReason(e.target.value)}
disabled={isPending}

View File

@ -647,7 +647,7 @@
"edit_federation.unlisted": "Force posts unlisted",
"edit_identity.names_title": "Names",
"edit_identity.pending_names_title": "Requested Names",
"edit_identity.reason_placeholder": "Why do you want this name?",
"edit_identity.reason_placeholder": "Why do you want to be part of the {siteTitle} community?",
"edit_identity.request": "Request",
"edit_identity.requested": "Name requested",
"edit_password.header": "Change Password",

View File

@ -648,7 +648,7 @@
"edit_federation.unlisted": "Forçar posts não listados",
"edit_identity.names_title": "Nomes",
"edit_identity.pending_names_title": "Nomes solicitados",
"edit_identity.reason_placeholder": "Por que você quer esse nome?",
"edit_identity.reason_placeholder": "Por que você quer fazer parte da comunidade {siteTitle}?",
"edit_identity.request": "Solicitar",
"edit_identity.requested": "Nome solicitado",
"edit_password.header": "Alterar senha",