Skip to content

Commit

Permalink
Remove excess l10n related markups (#2544)
Browse files Browse the repository at this point in the history
* Remove excess l10n related markups

* One more correction pointed out by quiple
  • Loading branch information
tkusano authored Jan 19, 2024
1 parent 2be2733 commit 0dfe740
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})}
/>
Expand Down
22 changes: 10 additions & 12 deletions src/view/com/modals/CreateOrEditList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down
4 changes: 1 addition & 3 deletions src/view/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/view/screens/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0dfe740

Please sign in to comment.