mirror of
https://github.com/gotson/komga.git
synced 2025-12-08 01:24:31 +01:00
add missing i18n
This commit is contained in:
parent
a85f85ce22
commit
d53e0f99d6
1 changed files with 43 additions and 8 deletions
|
|
@ -299,15 +299,42 @@ class BookImport {
|
||||||
public get statusMessage(): string {
|
public get statusMessage(): string {
|
||||||
switch (this.transientBook.status) {
|
switch (this.transientBook.status) {
|
||||||
case MediaStatus.UNKNOWN.valueOf():
|
case MediaStatus.UNKNOWN.valueOf():
|
||||||
return 'Book needs to be analyzed first'
|
return intl.formatMessage({
|
||||||
|
description: 'Import books: status message: book needs to be analyzed first',
|
||||||
|
defaultMessage: 'Book needs to be analyzed first',
|
||||||
|
id: 'CPMLrI',
|
||||||
|
})
|
||||||
case MediaStatus.UNSUPPORTED.valueOf():
|
case MediaStatus.UNSUPPORTED.valueOf():
|
||||||
return 'Book format is not supported'
|
return intl.formatMessage({
|
||||||
|
description: 'Import books: status message: book format is not supported',
|
||||||
|
defaultMessage: 'Book format is not supported',
|
||||||
|
id: 'g2UW+6',
|
||||||
|
})
|
||||||
case MediaStatus.ERROR.valueOf():
|
case MediaStatus.ERROR.valueOf():
|
||||||
return 'Book could not be analyzed'
|
return intl.formatMessage({
|
||||||
|
description: 'Import books: status message: book could not be analyzed',
|
||||||
|
defaultMessage: 'Book could not be analyzed',
|
||||||
|
id: '8jE3eP',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (!this.series) return 'Choose a series'
|
if (!this.series)
|
||||||
if (this.imported) return 'Import requested'
|
return intl.formatMessage({
|
||||||
if (this.upgradeBook) return 'Book will be upgraded'
|
description: 'Import books: status message: choose a series',
|
||||||
|
defaultMessage: 'Choose a series',
|
||||||
|
id: 'cM9FuW',
|
||||||
|
})
|
||||||
|
if (this.imported)
|
||||||
|
return intl.formatMessage({
|
||||||
|
description: 'Import books: status message: import requested',
|
||||||
|
defaultMessage: 'Import requested',
|
||||||
|
id: 'YHxouG',
|
||||||
|
})
|
||||||
|
if (this.upgradeBook)
|
||||||
|
return intl.formatMessage({
|
||||||
|
description: 'Import books: status message: book will be upgraded',
|
||||||
|
defaultMessage: 'Book will be upgraded',
|
||||||
|
id: 'UoaxO7',
|
||||||
|
})
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -429,11 +456,19 @@ const headers = [
|
||||||
|
|
||||||
const copyOptions = [
|
const copyOptions = [
|
||||||
{
|
{
|
||||||
title: 'Hardlink/Copy files',
|
title: intl.formatMessage({
|
||||||
|
description: 'Import books: copy option: hardlink/copy',
|
||||||
|
defaultMessage: 'Hardlink/Copy files',
|
||||||
|
id: 'ap/Lnw',
|
||||||
|
}),
|
||||||
value: 'HARDLINK',
|
value: 'HARDLINK',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Move files',
|
title: intl.formatMessage({
|
||||||
|
description: 'Import books: copy option: move',
|
||||||
|
defaultMessage: 'Move files',
|
||||||
|
id: 'EMhLEN',
|
||||||
|
}),
|
||||||
value: 'MOVE',
|
value: 'MOVE',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue