Remove duplicated i18n strings

This commit is contained in:
schroda
2024-07-01 19:51:27 +02:00
parent ea102eceb6
commit 149bc8ad0d
12 changed files with 16 additions and 19 deletions

View File

@@ -149,7 +149,6 @@
"downloaded": "Downloaded" "downloaded": "Downloaded"
} }
}, },
"title": "Chapter",
"title_one": "Chapter", "title_one": "Chapter",
"title_other": "Chapters" "title_other": "Chapters"
}, },
@@ -295,7 +294,8 @@
"updating": "Updating" "updating": "Updating"
} }
}, },
"title": "Extensions" "title_one": "Extension",
"title_other": "Extensions"
}, },
"global": { "global": {
"button": { "button": {
@@ -339,7 +339,6 @@
}, },
"date": { "date": {
"label": { "label": {
"day": "Day",
"day_one": "Day", "day_one": "Day",
"day_other": "Days", "day_other": "Days",
"today": "Today", "today": "Today",
@@ -701,7 +700,6 @@
"reload_from_source": "Reload data from source", "reload_from_source": "Reload data from source",
"status": "Status" "status": "Status"
}, },
"title": "Manga",
"title_one": "Manga", "title_one": "Manga",
"title_other": "Manga" "title_other": "Manga"
}, },
@@ -1155,7 +1153,6 @@
}, },
"title": "Local source" "title": "Local source"
}, },
"title": "Source",
"title_one": "Source", "title_one": "Source",
"title_other": "Sources" "title_other": "Sources"
}, },

View File

@@ -75,7 +75,7 @@ export const MigrateDialog = ({ mangaIdToMigrateTo, onClose }: { mangaIdToMigrat
<FormGroup> <FormGroup>
<CheckboxInput <CheckboxInput
disabled={isMigrationInProcess} disabled={isMigrationInProcess}
label={t('chapter.title')} label={t('chapter.title_one')}
checked={migrateChapters} checked={migrateChapters}
onChange={(_, checked) => setMigrationFlag('migrateChapters', checked)} onChange={(_, checked) => setMigrationFlag('migrateChapters', checked)}
/> />

View File

@@ -113,7 +113,7 @@ export const ChapterCard: React.FC<IProps> = (props: IProps) => {
{chapter.isBookmarked && <BookmarkIcon color="primary" />} {chapter.isBookmarked && <BookmarkIcon color="primary" />}
<TypographyMaxLines variant="h5" component="h2"> <TypographyMaxLines variant="h5" component="h2">
{showChapterNumber {showChapterNumber
? `${t('chapter.title')} ${chapter.chapterNumber}` ? `${t('chapter.title_one')} ${chapter.chapterNumber}`
: chapter.name} : chapter.name}
</TypographyMaxLines> </TypographyMaxLines>
</Stack> </Stack>

View File

@@ -123,7 +123,7 @@ export const ChapterList: React.FC<IProps> = ({ manga, isRefreshing }) => {
if (selectedChapters.length) { if (selectedChapters.length) {
return ( return (
<SelectionFAB selectedItemsCount={selectedChapters.length} title="chapter.title"> <SelectionFAB selectedItemsCount={selectedChapters.length} title="chapter.title_one">
{(handleClose) => ( {(handleClose) => (
<ChapterActionMenuItems selectedChapters={selectedChapters} onClose={handleClose} /> <ChapterActionMenuItems selectedChapters={selectedChapters} onClose={handleClose} />
)} )}
@@ -163,7 +163,7 @@ export const ChapterList: React.FC<IProps> = ({ manga, isRefreshing }) => {
<Stack direction="column" sx={{ position: 'relative' }}> <Stack direction="column" sx={{ position: 'relative' }}>
<ChapterListHeader direction="row" alignItems="center" justifyContent="space-between"> <ChapterListHeader direction="row" alignItems="center" justifyContent="space-between">
<Typography variant="h5"> <Typography variant="h5">
{`${visibleChapters.length} ${t('chapter.title', { {`${visibleChapters.length} ${t('chapter.title_one', {
count: visibleChapters.length, count: visibleChapters.length,
})}`} })}`}
</Typography> </Typography>

View File

@@ -211,7 +211,7 @@ export const MangaDetails: React.FC<IProps> = ({ manga }) => {
<Metadata title={t('manga.label.author')} value={getValueOrUnknown(manga.author)} /> <Metadata title={t('manga.label.author')} value={getValueOrUnknown(manga.author)} />
<Metadata title={t('manga.label.artist')} value={getValueOrUnknown(manga.artist)} /> <Metadata title={t('manga.label.artist')} value={getValueOrUnknown(manga.artist)} />
<Metadata title={t('manga.label.status')} value={getValueOrUnknown(manga.status)} /> <Metadata title={t('manga.label.status')} value={getValueOrUnknown(manga.status)} />
<Metadata title={t('source.title')} value={getSourceName(manga.source)} /> <Metadata title={t('source.title_one')} value={getSourceName(manga.source)} />
</MetadataContainer> </MetadataContainer>
</ThumbnailMetadataWrapper> </ThumbnailMetadataWrapper>
<MangaButtonsContainer> <MangaButtonsContainer>

View File

@@ -67,7 +67,7 @@ export const DownloadAheadSetting = ({
showSlider showSlider
dialogDescription={t('download.settings.download_ahead.label.description')} dialogDescription={t('download.settings.download_ahead.label.description')}
dialogDisclaimer={t('download.settings.download_ahead.label.disclaimer')} dialogDisclaimer={t('download.settings.download_ahead.label.disclaimer')}
valueUnit={t('chapter.title')} valueUnit={t('chapter.title_one')}
handleUpdate={updateSetting} handleUpdate={updateSetting}
disabled={!shouldDownloadAhead} disabled={!shouldDownloadAhead}
/> />

View File

@@ -30,8 +30,8 @@ export function Browse() {
return ( return (
<TabsWrapper> <TabsWrapper>
<TabsMenu value={tabNum} tabsCount={2} onChange={(e, newTab) => setTabNum(newTab)}> <TabsMenu value={tabNum} tabsCount={2} onChange={(e, newTab) => setTabNum(newTab)}>
<Tab sx={{ textTransform: 'none' }} label={t('source.title')} /> <Tab sx={{ textTransform: 'none' }} label={t('source.title_one')} />
<Tab sx={{ textTransform: 'none' }} label={t('extension.title')} /> <Tab sx={{ textTransform: 'none' }} label={t('extension.title_other')} />
<Tab sx={{ textTransform: 'none' }} label={t('migrate.title')} /> <Tab sx={{ textTransform: 'none' }} label={t('migrate.title')} />
</TabsMenu> </TabsMenu>
<TabPanel index={0} currentIndex={tabNum}> <TabPanel index={0} currentIndex={tabNum}>

View File

@@ -51,7 +51,7 @@ export const Manga: React.FC = () => {
}, [manga]); }, [manga]);
useEffect(() => { useEffect(() => {
setTitle(manga?.title ?? t('manga.title')); setTitle(manga?.title ?? t('manga.title_one'));
setAction(null); setAction(null);
return () => { return () => {

View File

@@ -410,7 +410,7 @@ export function SourceMangas() {
); );
useEffect(() => { useEffect(() => {
setTitle(source?.displayName ?? t('source.title')); setTitle(source?.displayName ?? t('source.title_one'));
setAction( setAction(
<> <>
<AppbarSearch /> <AppbarSearch />

View File

@@ -293,7 +293,7 @@ export function Backup() {
minValue={1} minValue={1}
maxValue={31} maxValue={31}
stepSize={1} stepSize={1}
valueUnit={t('global.date.label.day')} valueUnit={t('global.date.label.day_one')}
showSlider showSlider
handleUpdate={(interval: number) => updateSetting('backupInterval', interval)} handleUpdate={(interval: number) => updateSetting('backupInterval', interval)}
/> />
@@ -305,7 +305,7 @@ export function Backup() {
minValue={0} minValue={0}
maxValue={1000} maxValue={1000}
stepSize={1} stepSize={1}
valueUnit={t('global.date.label.day')} valueUnit={t('global.date.label.day_one')}
showSlider showSlider
handleUpdate={(ttl: number) => updateSetting('backupTTL', ttl)} handleUpdate={(ttl: number) => updateSetting('backupTTL', ttl)}
/> />

View File

@@ -102,7 +102,7 @@ export const BrowseSettings = () => {
value: serverSettings.maxSourcesInParallel, value: serverSettings.maxSourcesInParallel,
count: serverSettings.maxSourcesInParallel, count: serverSettings.maxSourcesInParallel,
})} })}
valueUnit={t('source.title')} valueUnit={t('source.title_one')}
value={serverSettings.maxSourcesInParallel} value={serverSettings.maxSourcesInParallel}
defaultValue={6} defaultValue={6}
minValue={1} minValue={1}

View File

@@ -197,7 +197,7 @@ export const DownloadSettings = () => {
minValue={0} minValue={0}
maxValue={20} maxValue={20}
showSlider showSlider
valueUnit={t('chapter.title')} valueUnit={t('chapter.title_one')}
handleUpdate={(autoDownloadNewChaptersLimit) => handleUpdate={(autoDownloadNewChaptersLimit) =>
updateSetting('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit) updateSetting('autoDownloadNewChaptersLimit', autoDownloadNewChaptersLimit)
} }