Skip to content

Commit

Permalink
fixed translate plural handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadariaga committed Jun 21, 2023
1 parent 883d090 commit 757c936
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion library/src/services/translations/translate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@ export default function translate(
values: any = {},
components: any = {}
): React.ReactElement {
return <Trans defaults={key} values={values} components={components} />;
const { count } = values;

return (
<Trans
defaults={key}
count={count}
values={values}
components={components}
/>
);
}

0 comments on commit 757c936

Please sign in to comment.