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
zio/stable
Minseo Lee 2024-01-23 07:55:56 +09:00 committed by GitHub
parent abacc51b50
commit d51ad1fec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 8 deletions

View File

@ -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)'},

View File

@ -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,

View File

@ -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}> &middot; </Text>
<Link href={translatorUrl} title={_(msg`Translate`)}>
<Text style={pal.link}>
<Trans>Translate</Trans>

View File

@ -205,7 +205,7 @@ let FeedItemInner = ({
title={_(
msg`Reposted by ${sanitizeDisplayName(
reason.by.displayName || reason.by.handle,
)})`,
)}`,
)}>
<FontAwesomeIcon
icon="retweet"