Fix missing translations (#5396)

* add missing translations

* add relese note

* add missing translations (no note)

---------

Co-authored-by: Alex <Alex>
This commit is contained in:
milanalexandre
2025-08-04 20:26:17 +02:00
committed by GitHub
parent 8f69669cc6
commit 5c11a0a51a
4 changed files with 12 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ export function SidebarGroup({
{ name: 'rename', text: t('Rename') },
!group.is_income && {
name: 'toggle-visibility',
text: group.hidden ? 'Show' : 'Hide',
text: group.hidden ? t('Show') : t('Hide'),
},
onDelete && { name: 'delete', text: t('Delete') },
...(isGoalTemplatesEnabled

View File

@@ -162,7 +162,7 @@ export function CategoryGroupMenuModal({
}}
>
<Notes
notes={notes?.length > 0 ? notes : 'No notes'}
notes={notes?.length > 0 ? notes : t('No notes')}
editable={false}
focused={false}
getStyle={() => ({
@@ -294,7 +294,7 @@ function AdditionalCategoryGroupMenu({ group, onDelete, onToggleVisibility }) {
[
{
name: 'toggleVisibility',
text: group.hidden ? 'Show' : 'Hide',
text: group.hidden ? t('Show') : t('Hide'),
icon: group.hidden ? SvgViewShow : SvgViewHide,
iconSize: 16,
},
@@ -302,7 +302,7 @@ function AdditionalCategoryGroupMenu({ group, onDelete, onToggleVisibility }) {
Menu.line,
{
name: 'delete',
text: 'Delete',
text: t('Delete'),
icon: SvgTrash,
iconSize: 15,
},

View File

@@ -1,4 +1,5 @@
import React, { createRef, useRef, useState } from 'react';
import { Trans } from 'react-i18next';
import { Button } from '@actual-app/components/button';
import { SvgExpandArrow } from '@actual-app/components/icons/v0';
@@ -199,7 +200,7 @@ export function SaveReport({
flexShrink: 0,
}}
>
{!report.id ? 'Unsaved report' : report.name}&nbsp;
{!report.id ? <Trans>Unsaved report</Trans> : report.name}&nbsp;
</Text>
{savedStatus === 'modified' && <Text>(modified)&nbsp;</Text>}
<SvgExpandArrow width={8} height={8} style={{ marginRight: 5 }} />

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [milanalexandre]
---
add missing translations for UI texts (Show, Hide, Delete, Unsaved report)