Skip to content

Commit

Permalink
fix: add translated text
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Dec 19, 2024
1 parent d03fbfa commit c77e9d7
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ const CampaignStats = () => {
<Row>
<Column>
<Row>
<StatWidget label={__('Amount Raised')} values={pluck(stats, 'amountRaised')} description={widgetDescription} formatter={currency} />
<StatWidget label={__('Donation Count')} values={pluck(stats, 'donationCount')} description={widgetDescription} />
<StatWidget label={__('Amount raised')} values={pluck(stats, 'amountRaised')} description={widgetDescription} formatter={currency} />
<StatWidget label={__('Number of donations')} values={pluck(stats, 'donationCount')} description={widgetDescription} />
</Row>
<RevenueWidget />
</Column>
<Column>
<StatWidget label={__('Donor Count')} values={pluck(stats, 'donorCount')} description={widgetDescription} />
<StatWidget label={__('Number of donors')} values={pluck(stats, 'donorCount')} description={widgetDescription} />
<GoalProgressWidget />
<DefaultFormWidget defaultForm={campaign.defaultFormTitle} />
</Column>
Expand Down Expand Up @@ -131,12 +131,13 @@ const PercentChangePill = ({value, comparison}) => {

}


const RevenueWidget = () => {
return (
<div className={styles.revenueWidget}>
<header>
<HeaderText>Revenue</HeaderText>
<HeaderSubText>{__('Show your revenue over time')}</HeaderSubText>
<HeaderText>{__('Revenue', 'give')}</HeaderText>
<HeaderSubText>{__('Show your revenue over time', 'give')}</HeaderSubText>
</header>
<RevenueChart />
</div>
Expand All @@ -149,8 +150,8 @@ const GoalProgressWidget = () => {

return (
<div className={styles.progressWidget}>
<HeaderText>{__('Goal Progress')}</HeaderText>
<HeaderSubText>{__('Show your campaign performance')}</HeaderSubText>
<HeaderText>{__('Goal progress', 'give')}</HeaderText>
<HeaderSubText>{__('Show your campaign performance', 'give')}</HeaderSubText>
<GoalProgressChart value={campaign.goalProgress} goal={campaign.goal} />
</div>
)
Expand Down

0 comments on commit c77e9d7

Please sign in to comment.