Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/eslint-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default tseslint.config(
'arrow-parens': 0,
camelcase: ['error', { properties: 'never' }],
'consistent-return': 'off',
'i18next/no-literal-string': 'warn',
'i18next/no-literal-string': 'error',
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
'import/extensions': 'off',
'import/first': 'error',
Expand Down
10 changes: 6 additions & 4 deletions frontend/components/BitappsPluginUtilUpdateNotice.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { __ } from '@common/helpers/i18nwrap'
import LucideIcn from '@icons/LucideIcn'
import { Alert } from 'antd'
import Link from 'antd/es/typography/Link'
Expand All @@ -12,12 +13,13 @@ export function BitAppsPluginUtilUpdateNotice() {
css={{ padding: 10 }}
description={
<>
<code>_bitapps-plugin-commons</code> submodule updated, please pull new changes from{' '}
<code>{__('_bitapps-plugin-commons')}</code>
{__('submodule updated, please pull new changes from')}
<Link href="https://github.com/Bit-Apps-Pro/_bitapps-plugin-commons" target="_blank">
GitHub
{__('GitHub')}
</Link>
. If you already pulled the changes, please restart the dev server. and run{' '}
<code>pnpm sync-plugin-commons</code> if needed.
{__('. If you already pulled the changes, please restart the dev server. and run')}
<code>{__('pnpm sync-plugin-commons')}</code> {__('if needed.')}
</>
}
icon={<LucideIcn name="circle-alert" />}
Expand Down
13 changes: 7 additions & 6 deletions frontend/components/FacebookCommunityCard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { __ } from '@common/helpers/i18nwrap'
import LucideIcn from '@icons/LucideIcn'
import fbCommunityImg from '@plugin-commons/resources/img/fbCommunity.webp'
import { Button, Flex, theme, Typography } from 'antd'
Expand Down Expand Up @@ -47,16 +48,16 @@ export default function FacebookCommunityCard({ facebookCommunityLink }: FBCommu
vertical
>
<Title level={3} style={{ color: 'white' }}>
Join Our Facebook Community
{__('Join Our Facebook Community')}
</Title>
<p css={{ color: 'white', fontSize: 18 }}>
Connect, share, and grow with like-minded individuals
{__('Connect, share, and grow with like-minded individuals')}
</p>
</Flex>
<Flex css={{ marginBlock: 0 }} gap={15} justify="center" wrap>
<span className="whitespace-nowrap">🌟 Exclusive Content</span>
<span className="whitespace-nowrap">💬 Daily Discussion</span>
<span className="whitespace-nowrap">🎉 Special Events</span>
<span className="whitespace-nowrap">🌟 {__('Exclusive Content')}</span>
<span className="whitespace-nowrap">💬 {__('Daily Discussion')}</span>
<span className="whitespace-nowrap">🎉 {__('Special Events')}</span>
</Flex>

<Button
Expand All @@ -73,7 +74,7 @@ export default function FacebookCommunityCard({ facebookCommunityLink }: FBCommu
size="large"
target="_blank"
>
Join Now
{__('Join Now')}
</Button>
</Flex>
)
Expand Down
8 changes: 5 additions & 3 deletions frontend/components/PluginUpdateNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import { SyncOutlined } from '@ant-design/icons'
import { __, sprintf } from '@common/helpers/i18nwrap'
import { Button } from 'antd'
import { type CSSProperties } from 'react'
import { useState } from 'react'
Expand Down Expand Up @@ -60,10 +61,11 @@ export default function PluginUpdateNotice() {
}}
>
<div className="notice notice-warning">
<h4 className="mt-2">Plugin Update Required ({aboutPlugin.title}) </h4>
<h4 className="mt-2">{sprintf(__('Plugin Update Required (%s)'), aboutPlugin.title)} </h4>
<p>
Please update both Free and Pro plugins to the latest version. Keeping them the same is crucial
to avoid potential issues.
{__(
'Please update both Free and Pro plugins to the latest version. Keeping them the same is crucial to avoid potential issues.'
)}
</p>
<Button
disabled={isLoadingUpdatePlugin}
Expand Down
19 changes: 12 additions & 7 deletions frontend/components/SupportPage/GiveReview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { __, sprintf } from '@common/helpers/i18nwrap'
import config from '@config/config'
import LucideIcn from '@icons/LucideIcn'
import { Badge, Button } from 'antd'
Expand All @@ -23,7 +24,7 @@ export default function GiveReview({ pluginSlug }: { pluginSlug: string }) {
color="geekblue"
text={
<span css={{ fontSize: 16, padding: 5 }}>
<LucideIcn name="dollar-sign" /> Cash Back
<LucideIcn name="dollar-sign" /> {__('Cash Back')}
</span>
}
>
Expand All @@ -35,14 +36,18 @@ export default function GiveReview({ pluginSlug }: { pluginSlug: string }) {
}}
>
<h4 css={{ color: 'white!important' }}>
Hi {SERVER_VARIABLES.loggedInUserName}, <span css={{ fontSize: 23 }}>👋</span>
{sprintf(__('Hi %s'), SERVER_VARIABLES.loggedInUserName)},{' '}
<span css={{ fontSize: 23 }}>👋</span>
</h4>
<p css={{ color: '#ccccd5', fontSize: 16 }}>
We want your feedback! <Link href={aboutPlugin.reviewLink}>Write a review</Link> of your
experience with {config.PRODUCT_NAME}, and we'll send you a{' '}
<b style={{ color: 'white' }}>$10 Cash back</b> to say thanks!
{__('We want your feedback!')}{' '}
<Link href={aboutPlugin.reviewLink}>{__('Write a review')}</Link>
{sprintf(__("of your experience with %s, and we'll send you a"), config.PRODUCT_NAME)}
<b style={{ color: 'white' }}>{__('$10 Cash back')}</b> {__('to say thanks!')}
<br />
To claim your cash back, simply reply to support with a screenshot or link of your review.
{__(
'To claim your cash back, simply reply to support with a screenshot or link of your review.'
)}
<br />
</p>
<Button
Expand All @@ -60,7 +65,7 @@ export default function GiveReview({ pluginSlug }: { pluginSlug: string }) {
target="_blank"
type="primary"
>
Review Now
{__('Review Now')}
</Button>
</div>
</Badge.Ribbon>
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/SupportPage/RecommendedPlugins.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { __ } from '@common/helpers/i18nwrap'
import config from '@config/config'
import LucideIcn from '@icons/LucideIcn'
import { useQuery } from '@tanstack/react-query'
Expand Down Expand Up @@ -40,7 +41,7 @@ function RecommendedPlugins() {

return (
<>
<Title level={5}>Recommended Plugins</Title>
<Title level={5}>{__('Recommended Plugins')}</Title>

<Flex gap={15} wrap>
{supportInfo?.pluginsList
Expand Down