diff options
author | Takayuki KUSANO <65759+tkusano@users.noreply.github.com> | 2024-01-19 14:23:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 21:23:12 -0800 |
commit | 0dfe740dd3c2cbda4c7bd27513807752fad636f3 (patch) | |
tree | edc20278169e47b3017b087a60c0586318171f4f | |
parent | 2be27330822e294989513719919ca2cd9ac30adb (diff) | |
download | voidsky-0dfe740dd3c2cbda4c7bd27513807752fad636f3.tar.zst |
Remove excess l10n related markups (#2544)
* Remove excess l10n related markups * One more correction pointed out by quiple
-rw-r--r-- | src/Navigation.tsx | 2 | ||||
-rw-r--r-- | src/view/com/modals/CreateOrEditList.tsx | 22 | ||||
-rw-r--r-- | src/view/screens/Search/Search.tsx | 4 | ||||
-rw-r--r-- | src/view/screens/Settings.tsx | 2 |
4 files changed, 13 insertions, 17 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index ea0cd384e..08cdd1d89 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -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', })} /> diff --git a/src/view/com/modals/CreateOrEditList.tsx b/src/view/com/modals/CreateOrEditList.tsx index bd1eb3393..77a1debec 100644 --- a/src/view/com/modals/CreateOrEditList.tsx +++ b/src/view/com/modals/CreateOrEditList.tsx @@ -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}> diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 8e7e204ad..f2b674245 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -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 && ( <> diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 1f117b45b..3b50c5449 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -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> |