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

@@ -103,6 +103,9 @@
} }
} }
}, },
"filter_and_sort": {
"label": "Filter and sort"
},
"label": { "label": {
"select": "Select" "select": "Select"
}, },
@@ -114,7 +117,8 @@
"label": { "label": {
"action": { "action": {
"current": "Mark as read", "current": "Mark as read",
"previous": "Mark previous as read" "previous": "Mark previous as read",
"all": "Mark all as read"
}, },
"confirmation_one": "You are about to mark one chapter as read", "confirmation_one": "You are about to mark one chapter as read",
"confirmation_other": "You are about to mark {{count}} chapters as read", "confirmation_other": "You are about to mark {{count}} chapters as read",
@@ -341,12 +345,13 @@
"browse": "Browse", "browse": "Browse",
"cancel": "Cancel", "cancel": "Cancel",
"changelog": "Changelog", "changelog": "Changelog",
"clear": "Clear", "clear_selection": "Clear",
"copy": "Copy", "copy": "Copy",
"create": "Create", "create": "Create",
"delete": "Delete", "delete": "Delete",
"deselect": "Deselect", "deselect": "Deselect",
"dont_show_dialog_again": "Don't show this dialog again", "dont_show_dialog_again": "Don't show this dialog again",
"download": "Download",
"edit": "Edit", "edit": "Edit",
"filter": "Filter", "filter": "Filter",
"ignore": "Ignore", "ignore": "Ignore",

View File

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

View File

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

View File

@@ -22,7 +22,7 @@ export const SelectableCollectionSelectAll = ({
const { t } = useTranslation(); const { t } = useTranslation();
return ( 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 <Checkbox
sx={{ sx={{
padding: '8px', padding: '8px',