Remove excess l10n related markups (#2544)

* Remove excess l10n related markups

* One more correction pointed out by quiple
zio/stable
Takayuki KUSANO 2024-01-19 14:23:12 +09:00 committed by GitHub
parent 2be2733082
commit 0dfe740dd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 17 deletions

View File

@ -144,7 +144,7 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
name="Profile"
getComponent={() => ProfileScreen}
options={({route}) => ({
title: title(msg`@${route.params.name}`),
title: bskyTitle(`@${route.params.name}`, unreadCountLabel),
animation: 'none',
})}
/>

View File

@ -182,19 +182,17 @@ export function Component({
]}
testID="createOrEditListModal">
<Text style={[styles.title, pal.text]}>
<Trans>
{isCurateList ? (
list ? (
<Trans>Edit User List</Trans>
) : (
<Trans>New User List</Trans>
)
) : list ? (
<Trans>Edit Moderation List</Trans>
{isCurateList ? (
list ? (
<Trans>Edit User List</Trans>
) : (
<Trans>New Moderation List</Trans>
)}
</Trans>
<Trans>New User List</Trans>
)
) : list ? (
<Trans>Edit Moderation List</Trans>
) : (
<Trans>New Moderation List</Trans>
)}
</Text>
{error !== '' && (
<View style={styles.errorContainer}>

View File

@ -83,9 +83,7 @@ function EmptyState({message, error}: {message: string; error?: string}) {
},
]}>
<View style={[pal.viewLight, {padding: 18, borderRadius: 8}]}>
<Text style={[pal.text]}>
<Trans>{message}</Trans>
</Text>
<Text style={[pal.text]}>{message}</Text>
{error && (
<>

View File

@ -291,7 +291,7 @@ export function SettingsScreen({}: Props) {
]}>
<View style={{flex: 1}}>
<Text type="title-lg" style={[pal.text, {fontWeight: 'bold'}]}>
<Trans>{_(msg`Settings`)}</Trans>
<Trans>Settings</Trans>
</Text>
</View>
</SimpleViewHeader>