diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-01-23 07:55:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 14:55:56 -0800 |
commit | d51ad1fec94ef933eafe0e5f58fba810e349494b (patch) | |
tree | 776f780a9335cbbfbb8bee85b2f7136d58e25b80 /src | |
parent | abacc51b50653dbf96aaa6b5f0fe133ab386c135 (diff) | |
download | voidsky-d51ad1fec94ef933eafe0e5f58fba810e349494b.tar.zst |
Fix typos, improve localization and unify separators (#2502)
* Correct a typing error in `FeedItem.tsx` and replace the middle dot in `Drawer.tsx` with a bullet. * Bullet to middle dot * `liked your custom feed{0}` to `liked your custom feed {0}` * Revert "`liked your custom feed{0}` to `liked your custom feed {0}`" This reverts commit 43ae67bd03abad59b15dceb12a54255d7ad302e9. * Update FeedItem.tsx * Update country-codes.ts
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/country-codes.ts | 5 | ||||
-rw-r--r-- | src/view/com/notifications/FeedItem.tsx | 8 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 2 | ||||
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 2 |
4 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/country-codes.ts b/src/lib/country-codes.ts index ecfeb8eae..ae0152876 100644 --- a/src/lib/country-codes.ts +++ b/src/lib/country-codes.ts @@ -236,7 +236,10 @@ export const COUNTRY_CODES: CountryCodeMap[] = [ {code2: 'UG', name: 'Uganda (+256)'}, {code2: 'UA', name: 'Ukraine (+380)'}, {code2: 'AE', name: 'United Arab Emirates (+971)'}, - {code2: 'GB', name: 'United Kingdom of Great Britain and Northern Ireland (+44)'}, + { + code2: 'GB', + name: 'United Kingdom of Great Britain and Northern Ireland (+44)', + }, {code2: 'US', name: 'United States of America (+1)'}, {code2: 'UY', name: 'Uruguay (+598)'}, {code2: 'UZ', name: 'Uzbekistan (+998)'}, diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index e9d8b63e2..0dfac2a83 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -167,11 +167,9 @@ let FeedItem = ({ icon = 'user-plus' iconStyle = [s.blue3 as FontAwesomeIconStyle] } else if (item.type === 'feedgen-like') { - action = _( - msg`liked your custom feed${ - item.subjectUri ? ` '${new AtUri(item.subjectUri).rkey}'` : '' - }`, - ) + action = item.subjectUri + ? _(msg`liked your custom feed '${new AtUri(item.subjectUri).rkey}'`) + : _(msg`liked your custom feed`) icon = 'HeartIconSolid' iconStyle = [ s.likeColor as FontAwesomeIconStyle, diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index cd218a062..c811cd12b 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -706,7 +706,7 @@ function ExpandedPostDetails({ <Text style={pal.textLight}>{niceDate(post.indexedAt)}</Text> {needsTranslation && ( <> - <Text style={[pal.textLight, s.ml5, s.mr5]}>•</Text> + <Text style={pal.textLight}> · </Text> <Link href={translatorUrl} title={_(msg`Translate`)}> <Text style={pal.link}> <Trans>Translate</Trans> diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 8dee4ed49..a8aff0510 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -205,7 +205,7 @@ let FeedItemInner = ({ title={_( msg`Reposted by ${sanitizeDisplayName( reason.by.displayName || reason.by.handle, - )})`, + )}`, )}> <FontAwesomeIcon icon="retweet" |