chore: add translations

This commit is contained in:
Tom (plebeius.eth)
2024-05-31 17:29:19 +02:00
parent 22657ff90a
commit fe48a991cc
40 changed files with 112 additions and 42 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
[
<label>
<input type='checkbox' onChange={(e) => setContent.spoiler(e.target.checked)} />
{t('spoiler')}?
{_.capitalize(t('spoiler'))}?
</label>
]
</span>
@@ -23,7 +23,7 @@ const SubplebbitDescription = ({ avatarUrl, createdAt, description, shortAddress
isDescription: true,
subplebbitAddress,
timestamp: isInAllView ? multisubMetadata?.createdAt : createdAt,
author: { displayName: '## Board Mods' },
author: { displayName: `'## ${t('board_mods')}` },
content: isInAllView ? multisubMetadata?.description : description,
link: avatarUrl,
title: t('welcome_to_board', {
@@ -15,7 +15,7 @@ const SubplebbitRules = ({ subplebbitAddress, createdAt, rules }: RulesPostProps
isRules: true,
subplebbitAddress,
timestamp: createdAt,
author: { displayName: '## Board Mods' },
author: { displayName: `## ${t('board_mods')}` },
content,
title: _.capitalize(t('rules')),
pinned: true,
+1 -1
View File
@@ -60,7 +60,7 @@ const Board = () => {
{state === 'failed' ? (
state
) : isInSubscriptionsView && subscriptions?.length === 0 ? (
`You have not subscribed to any board yet.`
t('not_subscribed_to_any_board')
) : (
<LoadingEllipsis string={loadingStateString} />
)}
+3 -3
View File
@@ -39,7 +39,7 @@ const useFeedRows = (columnCount: number, feed: any, isFeedLoaded: boolean, subp
isDescription: true,
subplebbitAddress: address,
timestamp: createdAt,
author: { displayName: '## Board Mods' },
author: { displayName: `## ${t('board_mods')}` },
content: isInAllView ? multisub?.description : description,
link: avatarUrl,
title: t('welcome_to_board', { board: isInAllView ? multisub?.title : title || `p/${shortAddress}` }),
@@ -52,7 +52,7 @@ const useFeedRows = (columnCount: number, feed: any, isFeedLoaded: boolean, subp
isRules: true,
subplebbitAddress: address,
timestamp: createdAt,
author: { displayName: '## Board Mods' },
author: { displayName: `## ${t('board_mods')}` },
content: rules.map((rule: string, index: number) => `${index + 1}. ${rule}`).join('\n'),
title: _.capitalize(t('rules')),
pinned: true,
@@ -117,7 +117,7 @@ const Catalog = () => {
{state === 'failed' ? (
state
) : isInSubscriptionsView && subscriptions?.length === 0 ? (
`You haven't subscribed to any board yet.`
t('not_subscribed_to_any_board')
) : (
<LoadingEllipsis string={loadingStateString} />
)}