diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 0d0aef2c..1ef175e1 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -12,7 +12,7 @@
more_vert
-

{{ isDirectPlayMethod ? 'Direct' : isLocalPlayMethod ? 'Local' : 'Transcode' }}

+

{{ isDirectPlayMethod ? $strings.LabelPlaybackDirect : isLocalPlayMethod ? $strings.LabelPlaybackLocal : $strings.LabelPlaybackTranscode }}

@@ -175,7 +175,7 @@ export default { // TODO: Implement on iOS if (this.$platform !== 'ios' && !this.isPodcast && this.mediaId) { items.push({ - text: 'History', + text: this.$strings.ButtonHistory, value: 'history', icon: 'history' }) @@ -184,22 +184,22 @@ export default { items.push( ...[ { - text: 'Total Track', + text: this.$strings.LabelTotalTrack, value: 'total_track', icon: this.useTotalTrack ? 'check_box' : 'check_box_outline_blank' }, { - text: 'Chapter Track', + text: this.$strings.LabelChapterTrack, value: 'chapter_track', icon: this.useChapterTrack ? 'check_box' : 'check_box_outline_blank' }, { - text: this.lockUi ? 'Unlock Player' : 'Lock Player', + text: this.lockUi ? this.$strings.LabelUnlockPlayer : this.$strings.LabelLockPlayer, value: 'lock', icon: this.lockUi ? 'lock' : 'lock_open' }, { - text: 'Close Player', + text: this.$strings.LabelClosePlayer, value: 'close', icon: 'close' } diff --git a/components/home/BookshelfNavBar.vue b/components/home/BookshelfNavBar.vue index c409f6e9..ebc3d6aa 100644 --- a/components/home/BookshelfNavBar.vue +++ b/components/home/BookshelfNavBar.vue @@ -20,7 +20,7 @@ export default { return this.$store.getters['libraries/getCurrentLibrary'] }, currentLibraryIcon() { - return this.currentLibrary ? this.currentLibrary.icon : 'database' + return this.currentLibrary?.icon || 'database' }, userHasPlaylists() { return this.$store.state.libraries.numUserPlaylists diff --git a/components/home/BookshelfToolbar.vue b/components/home/BookshelfToolbar.vue index c6b09b4e..7a4d4fda 100644 --- a/components/home/BookshelfToolbar.vue +++ b/components/home/BookshelfToolbar.vue @@ -64,16 +64,16 @@ export default { return this.$route.query || {} }, entityTitle() { - if (this.isPodcast) return 'Podcasts' - if (this.page === 'library') return 'Books' + if (this.isPodcast) return this.$strings.LabelPodcasts + if (this.page === 'library') return this.$strings.LabelBooks else if (this.page === 'series') { - return 'Series' + return this.$strings.LabelSeries } else if (this.page === 'collections') { - return 'Collections' + return this.$strings.ButtonCollections } else if (this.page === 'playlists') { - return 'Playlists' + return this.$strings.ButtonPlaylists } else if (this.page === 'authors') { - return 'Authors' + return this.$strings.LabelAuthors } return '' }, @@ -92,7 +92,7 @@ export default { if (this.seriesBookPage) { return [ { - text: 'Collapse Sub-Series', + text: this.$strings.LabelCollapseSeries, value: 'collapse_subseries', icon: this.settings.collapseBookSeries ? 'check_box' : 'check_box_outline_blank' } @@ -100,7 +100,7 @@ export default { } else { return [ { - text: 'Collapse Series', + text: this.$strings.LabelCollapseSeries, value: 'collapse_series', icon: this.settings.collapseSeries ? 'check_box' : 'check_box_outline_blank' } diff --git a/components/modals/ItemDetailsModal.vue b/components/modals/ItemDetailsModal.vue index 973d535d..a7d6bb66 100644 --- a/components/modals/ItemDetailsModal.vue +++ b/components/modals/ItemDetailsModal.vue @@ -10,7 +10,7 @@

{{ mediaMetadata.title }}

-
Size: {{ $bytesPretty(size) }}
+
{{ $strings.LabelSize }}: {{ $bytesPretty(size) }}

ID: {{ _libraryItem.id }}

diff --git a/components/modals/ItemMoreMenuModal.vue b/components/modals/ItemMoreMenuModal.vue index 195b4bd9..d2886f3c 100644 --- a/components/modals/ItemMoreMenuModal.vue +++ b/components/modals/ItemMoreMenuModal.vue @@ -381,13 +381,9 @@ export default { return } - let confirmMessage = `Remove local episode "${localFile.basePath}" from your device?` - if (this.serverLibraryItemId) { - confirmMessage += ' The file on the server will be unaffected.' - } const { value } = await Dialog.confirm({ title: 'Confirm', - message: confirmMessage + message: this.$getString('MessageConfirmDeleteLocalEpisode', [localFile.basePath]) }) if (value) { const res = await AbsFileSystem.deleteTrackFromItem({ id: this.localLibraryItemId, trackLocalFileId: localFile.id, trackContentUrl: localEpisodeAudioTrack.contentUrl }) @@ -411,13 +407,9 @@ export default { async deleteLocalItem() { await this.$hapticsImpact() - let confirmMessage = 'Remove local files of this item from your device?' - if (this.serverLibraryItemId) { - confirmMessage += ' The files on the server and your progress will be unaffected.' - } const { value } = await Dialog.confirm({ title: 'Confirm', - message: confirmMessage + message: this.$strings.MessageConfirmDeleteLocalFiles }) if (value) { const res = await AbsFileSystem.deleteItem(this.localLibraryItem) diff --git a/components/readers/Reader.vue b/components/readers/Reader.vue index 297bc0fd..bc55fb50 100644 --- a/components/readers/Reader.vue +++ b/components/readers/Reader.vue @@ -27,7 +27,7 @@
-

Table of Contents

+

{{ $strings.HeaderTableOfContents }}

@@ -47,7 +47,7 @@
-

{{ 'No Chapters' }}

+

{{ $strings.MessageNoChapters }}

@@ -56,7 +56,7 @@
-

Ereader Settings

+

{{ $strings.HeaderEreaderSettings }}

@@ -65,19 +65,19 @@
-

Theme:

+

{{ $strings.LabelTheme }}:

-

Font scale:

+

{{ $strings.LabelFontScale }}:

-

Line spacing:

+

{{ $strings.LabelLineSpacing }}:

@@ -155,11 +155,11 @@ export default { themeItems() { return [ { - text: 'Dark', + text: this.$strings.LabelThemeDark, value: 'dark' }, { - text: 'Light', + text: this.$strings.LabelThemeLight, value: 'light' } ] diff --git a/components/stats/DailyListeningChart.vue b/components/stats/DailyListeningChart.vue index ffbe653a..cb98418c 100644 --- a/components/stats/DailyListeningChart.vue +++ b/components/stats/DailyListeningChart.vue @@ -1,6 +1,6 @@