fix(i18n): update translation keys (#999)

* feat(chapter): add "mark all as read" option

Added new translation key for "Mark all as read" and updated ChaptersToolbarMenu to use it in the tooltip when marking all chapters as read.

* refactor(i18n): create global download key for generic actions

* feat(i18n): add filter and sort string to chapter toolbar

* fix(i18n): update tooltip text for clear selection action

* apply `yarn lint --fix`
This commit is contained in:
Zeedif
2025-08-24 12:47:24 -06:00
committed by GitHub
parent f851c04932
commit 0f8c6496f8
4 changed files with 12 additions and 13 deletions

View File

@@ -102,7 +102,7 @@ export const ServerUpdateChecker = () => {
channel: selectedServerChannelInfo.channel,
version: selectedServerChannelInfo.tag,
})}
actionTitle={t('chapter.action.download.add.label.action')}
actionTitle={t('global.button.download')}
actionUrl={selectedServerChannelInfo.url}
updateCheckerProps={['server', checkForUpdate, selectedServerChannelInfo?.tag]}
/>

View File

@@ -55,10 +55,7 @@ export const ChaptersToolbarMenu = ({
return (
<>
<CustomTooltip
title={t('chapter.action.mark_as_read.add.label.action.current')}
disabled={areAllChaptersRead}
>
<CustomTooltip title={t('chapter.action.mark_as_read.add.label.action.all')} disabled={areAllChaptersRead}>
<IconButton
disabled={areAllChaptersRead}
onClick={() => Chapters.markAsRead(Chapters.getNonRead(chapters), true, mangaId)}
@@ -70,10 +67,7 @@ export const ChaptersToolbarMenu = ({
<PopupState variant="popover" popupId="chapterlist-download-button">
{(popupState) => (
<>
<CustomTooltip
title={t('chapter.action.download.add.label.action')}
disabled={areAllChaptersRead}
>
<CustomTooltip title={t('global.button.download')} disabled={areAllChaptersRead}>
<IconButton
disabled={areAllChaptersDownloaded}
{...bindTrigger(popupState)}
@@ -90,7 +84,7 @@ export const ChaptersToolbarMenu = ({
</>
)}
</PopupState>
<CustomTooltip title={t('settings.title')}>
<CustomTooltip title={t('chapter.action.filter_and_sort.label')}>
<IconButton onClick={() => setOpen(true)} color="inherit">
<FilterList color={isFiltered ? 'warning' : undefined} />
</IconButton>

View File

@@ -22,7 +22,7 @@ export const SelectableCollectionSelectAll = ({
const { t } = useTranslation();
return (
<CustomTooltip title={t(!areAllItemsSelected ? 'global.button.select_all' : 'global.button.clear')}>
<CustomTooltip title={t(!areAllItemsSelected ? 'global.button.select_all' : 'global.button.clear_selection')}>
<Checkbox
sx={{
padding: '8px',