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" name="Profile"
getComponent={() => ProfileScreen} getComponent={() => ProfileScreen}
options={({route}) => ({ options={({route}) => ({
title: title(msg`@${route.params.name}`), title: bskyTitle(`@${route.params.name}`, unreadCountLabel),
animation: 'none', animation: 'none',
})} })}
/> />

View File

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

View File

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