Deduplicate common strings in translation (#5085)
* deduplicate common strings, part 1 * deduplicate common strings, part 2 * typo and general import mess fixes * detail common string * fix lint * fix lint TWO * adress review concerns + lint * app lint too * actually leave privateLabel untouched * lint fix THREE * fix: broken msg * fix: lint --------- Co-authored-by: Calum H. <contact@cal.engineer> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<div class="flex flex-col gap-3">
|
||||
<div v-if="isAdmin(auth.user)" class="flex flex-col gap-1">
|
||||
<span class="text-lg font-bold text-primary">{{
|
||||
formatMessage(messages.emailLabel)
|
||||
formatMessage(commonMessages.emailLabel)
|
||||
}}</span>
|
||||
<div>
|
||||
<span
|
||||
@@ -61,8 +61,8 @@
|
||||
<XIcon v-else class="h-4 w-4 text-red" />
|
||||
{{
|
||||
user.email_verified
|
||||
? formatMessage(messages.yesLabel)
|
||||
: formatMessage(messages.noLabel)
|
||||
? formatMessage(commonMessages.yesLabel)
|
||||
: formatMessage(commonMessages.noLabel)
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
@@ -97,7 +97,9 @@
|
||||
}}</span>
|
||||
<span>
|
||||
{{
|
||||
user.has_password ? formatMessage(messages.yesLabel) : formatMessage(messages.noLabel)
|
||||
user.has_password
|
||||
? formatMessage(commonMessages.yesLabel)
|
||||
: formatMessage(commonMessages.noLabel)
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
@@ -107,7 +109,11 @@
|
||||
formatMessage(messages.hasTotpLabel)
|
||||
}}</span>
|
||||
<span>
|
||||
{{ user.has_totp ? formatMessage(messages.yesLabel) : formatMessage(messages.noLabel) }}
|
||||
{{
|
||||
user.has_totp
|
||||
? formatMessage(commonMessages.yesLabel)
|
||||
: formatMessage(commonMessages.noLabel)
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -575,14 +581,6 @@ const messages = defineMessages({
|
||||
id: 'profile.details.label.has-totp',
|
||||
defaultMessage: 'Has TOTP',
|
||||
},
|
||||
yesLabel: {
|
||||
id: 'profile.label.yes',
|
||||
defaultMessage: 'Yes',
|
||||
},
|
||||
noLabel: {
|
||||
id: 'profile.label.no',
|
||||
defaultMessage: 'No',
|
||||
},
|
||||
bioFallbackUser: {
|
||||
id: 'profile.bio.fallback.user',
|
||||
defaultMessage: 'A Modrinth user.',
|
||||
@@ -604,10 +602,6 @@ const messages = defineMessages({
|
||||
id: 'profile.user-id',
|
||||
defaultMessage: 'User ID: {id}',
|
||||
},
|
||||
profileDetails: {
|
||||
id: 'profile.label.details',
|
||||
defaultMessage: 'Details',
|
||||
},
|
||||
profileOrganizations: {
|
||||
id: 'profile.label.organizations',
|
||||
defaultMessage: 'Organizations',
|
||||
|
||||
Reference in New Issue
Block a user