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.tszio/stable
parent
abacc51b50
commit
d51ad1fec9
|
@ -236,7 +236,10 @@ export const COUNTRY_CODES: CountryCodeMap[] = [
|
||||||
{code2: 'UG', name: 'Uganda (+256)'},
|
{code2: 'UG', name: 'Uganda (+256)'},
|
||||||
{code2: 'UA', name: 'Ukraine (+380)'},
|
{code2: 'UA', name: 'Ukraine (+380)'},
|
||||||
{code2: 'AE', name: 'United Arab Emirates (+971)'},
|
{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: 'US', name: 'United States of America (+1)'},
|
||||||
{code2: 'UY', name: 'Uruguay (+598)'},
|
{code2: 'UY', name: 'Uruguay (+598)'},
|
||||||
{code2: 'UZ', name: 'Uzbekistan (+998)'},
|
{code2: 'UZ', name: 'Uzbekistan (+998)'},
|
||||||
|
|
|
@ -167,11 +167,9 @@ let FeedItem = ({
|
||||||
icon = 'user-plus'
|
icon = 'user-plus'
|
||||||
iconStyle = [s.blue3 as FontAwesomeIconStyle]
|
iconStyle = [s.blue3 as FontAwesomeIconStyle]
|
||||||
} else if (item.type === 'feedgen-like') {
|
} else if (item.type === 'feedgen-like') {
|
||||||
action = _(
|
action = item.subjectUri
|
||||||
msg`liked your custom feed${
|
? _(msg`liked your custom feed '${new AtUri(item.subjectUri).rkey}'`)
|
||||||
item.subjectUri ? ` '${new AtUri(item.subjectUri).rkey}'` : ''
|
: _(msg`liked your custom feed`)
|
||||||
}`,
|
|
||||||
)
|
|
||||||
icon = 'HeartIconSolid'
|
icon = 'HeartIconSolid'
|
||||||
iconStyle = [
|
iconStyle = [
|
||||||
s.likeColor as FontAwesomeIconStyle,
|
s.likeColor as FontAwesomeIconStyle,
|
||||||
|
|
|
@ -706,7 +706,7 @@ function ExpandedPostDetails({
|
||||||
<Text style={pal.textLight}>{niceDate(post.indexedAt)}</Text>
|
<Text style={pal.textLight}>{niceDate(post.indexedAt)}</Text>
|
||||||
{needsTranslation && (
|
{needsTranslation && (
|
||||||
<>
|
<>
|
||||||
<Text style={[pal.textLight, s.ml5, s.mr5]}>•</Text>
|
<Text style={pal.textLight}> · </Text>
|
||||||
<Link href={translatorUrl} title={_(msg`Translate`)}>
|
<Link href={translatorUrl} title={_(msg`Translate`)}>
|
||||||
<Text style={pal.link}>
|
<Text style={pal.link}>
|
||||||
<Trans>Translate</Trans>
|
<Trans>Translate</Trans>
|
||||||
|
|
|
@ -205,7 +205,7 @@ let FeedItemInner = ({
|
||||||
title={_(
|
title={_(
|
||||||
msg`Reposted by ${sanitizeDisplayName(
|
msg`Reposted by ${sanitizeDisplayName(
|
||||||
reason.by.displayName || reason.by.handle,
|
reason.by.displayName || reason.by.handle,
|
||||||
)})`,
|
)}`,
|
||||||
)}>
|
)}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
icon="retweet"
|
icon="retweet"
|
||||||
|
|
Loading…
Reference in New Issue