about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTakayuki KUSANO <65759+tkusano@users.noreply.github.com>2024-01-19 14:23:12 +0900
committerGitHub <noreply@github.com>2024-01-18 21:23:12 -0800
commit0dfe740dd3c2cbda4c7bd27513807752fad636f3 (patch)
treeedc20278169e47b3017b087a60c0586318171f4f /src
parent2be27330822e294989513719919ca2cd9ac30adb (diff)
downloadvoidsky-0dfe740dd3c2cbda4c7bd27513807752fad636f3.tar.zst
Remove excess l10n related markups (#2544)
* Remove excess l10n related markups

* One more correction pointed out by quiple
Diffstat (limited to 'src')
-rw-r--r--src/Navigation.tsx2
-rw-r--r--src/view/com/modals/CreateOrEditList.tsx22
-rw-r--r--src/view/screens/Search/Search.tsx4
-rw-r--r--src/view/screens/Settings.tsx2
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>