Skip to content

Commit

Permalink
more translations
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Dec 13, 2024
1 parent a8848a2 commit 5ceec73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Ref, useEffect, useState } from 'react';
import { Trans } from 'react-i18next';

import {
addDays,
Expand Down Expand Up @@ -126,7 +127,7 @@ export function CalendarGraph({
marginRight: 4,
}}
>
Income:
<Trans>Income</Trans>:
</View>
<View
style={{
Expand Down Expand Up @@ -155,7 +156,7 @@ export function CalendarGraph({
marginRight: 4,
}}
>
Expenses:
<Trans>Expenses</Trans>:
</View>
<View
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ function CalendarWithHeader({
conditions,
conditionsOp,
}: CalendarWithHeaderProps) {
const { t } = useTranslation();

return (
<View
style={{
Expand Down Expand Up @@ -804,7 +806,7 @@ function CalendarWithHeader({
flexGrow: 1,
justifyContent: 'start',
}}
aria-label="Income"
aria-label={t('Income')}
>
<PrivacyFilter>
{amountToCurrency(calendar.totalIncome)}
Expand All @@ -822,7 +824,7 @@ function CalendarWithHeader({
flexGrow: 1,
justifyContent: 'start',
}}
aria-label="Expenses"
aria-label={t('Expenses')}
>
<PrivacyFilter>
{amountToCurrency(calendar.totalExpense)}
Expand Down Expand Up @@ -913,7 +915,7 @@ function CalendarCardHeader({
marginRight: 4,
}}
>
Income:
<Trans>Income</Trans>:
</View>
<View style={{ color: chartTheme.colors.blue }}>
<PrivacyFilter>{amountToCurrency(totalIncome)}</PrivacyFilter>
Expand All @@ -925,7 +927,7 @@ function CalendarCardHeader({
marginRight: 4,
}}
>
Expenses:
<Trans>Expenses</Trans>:
</View>
<View style={{ color: chartTheme.colors.red }}>
<PrivacyFilter>{amountToCurrency(totalExpense)}</PrivacyFilter>
Expand Down

0 comments on commit 5ceec73

Please sign in to comment.