Skip to content

Commit

Permalink
Merge pull request #1619 from Plant-for-the-Planet-org/Fix/translatio…
Browse files Browse the repository at this point in the history
…n_issue

fix: translation issues
  • Loading branch information
mariahosfeld committed Nov 22, 2022
2 parents 6ece5d0 + 36cd298 commit 88ca6a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/features/common/TreeCounter/TreeCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function TpoProfile(props: any) {
)}
</h1>
<h2>
{t('me:treesPlanted', {
{t('me:treesPlanted_plural', {
count: Number(props.planted),
treeCount: getFormattedNumber(
i18n.language,
Expand Down
5 changes: 4 additions & 1 deletion src/features/projects/components/ProjectSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export default function ProjectSnippet({
Number(project.countPlanted),
1
)}{' '}
{t('common:tree', { count: Number(project.countPlanted) })}{' '}
{t('common:tree_plural', {
count: Number(project.countPlanted),
})}{' '}
{' '}
</>
) : (
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: flex;
flex-direction: column;
gap: 12px;
}
}
.formHeader {
font-size: $fontMedium;
color: $primaryFontColor;
Expand Down
2 changes: 1 addition & 1 deletion src/features/user/Widget/DonationLink/DonationLinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import supportedLanguages from '../../../../utils/language/supportedLanguages.js
import React from 'react';
import ProjectSelectAutocomplete from '../../BulkCodes/components/ProjectSelectAutocomplete';
import { TENANT_ID } from '../../../../utils/constants/environment';
import styles from '../../../../../src/features/user/Widget/DonationLink';
import styles from '../../../../../src/features/user/Widget/DonationLink/DonationLinkForm.module.scss';
import CopyToClipboard from '../../../common/CopyToClipboard';
import {
MuiAutoComplete,
Expand Down

0 comments on commit 88ca6a1

Please sign in to comment.