diff --git a/packages/plugins/RSS3/src/SNSAdaptor/components/DonationCard.tsx b/packages/plugins/RSS3/src/SNSAdaptor/components/DonationCard.tsx index 19125c848569..3e6b365975ee 100644 --- a/packages/plugins/RSS3/src/SNSAdaptor/components/DonationCard.tsx +++ b/packages/plugins/RSS3/src/SNSAdaptor/components/DonationCard.tsx @@ -2,6 +2,7 @@ import { makeStyles, MaskColorVar } from '@masknet/theme' import { Typography } from '@mui/material' import classnames from 'classnames' import { HTMLProps, Fragment } from 'react' +import { useI18N } from '../../locales' export interface DonationCardProps extends HTMLProps { imageUrl: string @@ -69,6 +70,7 @@ export const DonationCard = ({ ...rest }: DonationCardProps) => { const { classes } = useStyles() + const t = useI18N() return (
{name} @@ -85,7 +87,7 @@ export const DonationCard = ({
{contribCount} - Contrib + {t.contribution({ count: contribCount })}
{contribDetails.map((contrib, i) => ( diff --git a/packages/plugins/RSS3/src/locales/en-US.json b/packages/plugins/RSS3/src/locales/en-US.json index 6ac93b454708..757d0d9437f0 100644 --- a/packages/plugins/RSS3/src/locales/en-US.json +++ b/packages/plugins/RSS3/src/locales/en-US.json @@ -3,5 +3,7 @@ "no_activity_time": "No activity time", "attended": "attended", "no_data": "No data", - "total_grants": "Total {{count}} Grants" + "total_grants": "Total {{count}} Grants", + "contribution": "Contribution", + "contribution_other": "Contributions" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d454a7df1977..cdb96108fd71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9814,7 +9814,7 @@ packages: engines: {node: '>= 8'} dependencies: normalize-path: 3.0.0 - picomatch: 2.3.0 + picomatch: 2.3.1 /app-root-dir/1.0.2: resolution: {integrity: sha1-OBh+wt6nV3//Az/8sSFyaS/24Rg=} @@ -18477,7 +18477,7 @@ packages: /jsonfile/4.0.0: resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: - graceful-fs: 4.2.9 + graceful-fs: 4.2.8 /jsonfile/6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} @@ -20717,11 +20717,11 @@ packages: /picomatch/2.3.0: resolution: {integrity: sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==} engines: {node: '>=8.6'} + dev: true /picomatch/2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - dev: true /pify/2.3.0: resolution: {integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw=} @@ -21932,7 +21932,7 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} dependencies: - picomatch: 2.3.0 + picomatch: 2.3.1 /receptacle/1.3.2: resolution: {integrity: sha512-HrsFvqZZheusncQRiEE7GatOAETrARKV/lnfYicIm8lbvp/JQOdADOfhjBd2DajvoszEyxSM6RlAAIZgEoeu/A==}