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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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