Fix translate payees page (#5514)

* Payees page

* edit rule

format

* add relese note

* feed back

---------

Co-authored-by: Alex <Alex>
This commit is contained in:
milanalexandre
2025-08-07 21:51:25 +02:00
committed by GitHub
parent bacf3091b6
commit 3e488ae8f7
3 changed files with 14 additions and 16 deletions

View File

@@ -1126,8 +1126,8 @@ export function EditRuleModal({
data-testid="conditions-op"
style={{ display: 'inline-flex' }}
fields={[
['and', 'all'],
['or', 'any'],
['and', t('all')],
['or', t('any')],
]}
value={conditionsOp}
onChange={onChangeConditionsOp}

View File

@@ -38,10 +38,6 @@ import { useDispatch } from '@desktop-client/redux';
const getPayeesById = memoizeOne((payees: PayeeEntity[]) => groupById(payees));
function plural(count: number, singleText: string, pluralText: string) {
return count === 1 ? singleText : pluralText;
}
function PayeeTableHeader() {
const dispatchSelected = useSelectedDispatch();
const selectedItems = useSelectedItems();
@@ -238,9 +234,9 @@ export const ManagePayees = ({
>
{buttonsDisabled
? t('No payees selected')
: selected.items.size +
' ' +
t(plural(selected.items.size, 'payee', 'payees'))}
: t('{{count}} payees', {
count: selected.items.size,
})}
<SvgExpandArrow width={8} height={8} style={{ marginLeft: 5 }} />
</Button>
@@ -275,13 +271,9 @@ export const ManagePayees = ({
>
{orphanedOnly
? t('Show all payees')
: t(
`Show ${
orphanedPayees.length === 1
? '1 unused payee'
: `${orphanedPayees.length} unused payees`
}`,
)}
: t('Show {{count}} unused payees', {
count: orphanedPayees.length,
})}
</Button>
)}
</View>