add
-
Create Bookmark
+
{{ $strings.ButtonCreateBookmark }}
{{ this.$secondsToTimestamp(currentTime) }}
@@ -98,7 +98,7 @@ export default {
await this.$hapticsImpact()
const { value } = await Dialog.confirm({
title: 'Remove Bookmark',
- message: `Are you sure you want to remove bookmark?`
+ message: this.$strings.MessageConfirmRemoveBookmark
})
if (!value) return
@@ -108,7 +108,7 @@ export default {
this.$store.commit('user/deleteBookmark', { libraryItemId: this.libraryItemId, time: bm.time })
})
.catch((error) => {
- this.$toast.error(`Failed to remove bookmark`)
+ this.$toast.error(this.$strings.ToastBookmarkRemoveFailed)
console.error(error)
})
},
@@ -124,7 +124,7 @@ export default {
this.showBookmarkTitleInput = false
})
.catch((error) => {
- this.$toast.error(`Failed to update bookmark`)
+ this.$toast.error(this.$strings.ToastBookmarkUpdateFailed)
console.error(error)
})
},
@@ -142,7 +142,7 @@ export default {
this.$toast.success('Bookmark added')
})
.catch((error) => {
- this.$toast.error(`Failed to create bookmark`)
+ this.$toast.error(this.$strings.ToastBookmarkCreateFailed)
console.error(error)
})
diff --git a/components/modals/ChaptersModal.vue b/components/modals/ChaptersModal.vue
index 9a1c94d3..31cb8845 100644
--- a/components/modals/ChaptersModal.vue
+++ b/components/modals/ChaptersModal.vue
@@ -2,7 +2,7 @@
-
{{ chapters.length }} Chapters
+
{{ chapters.length }} {{ $strings.LabelChapters }}
diff --git a/components/modals/FilterModal.vue b/components/modals/FilterModal.vue
index b4215a3e..67cb8f4c 100644
--- a/components/modals/FilterModal.vue
+++ b/components/modals/FilterModal.vue
@@ -2,7 +2,7 @@
- Clear
+ {{ $strings.ButtonClearFilter }}
@@ -25,7 +25,7 @@
arrow_left
- Back
+ {{ $strings.ButtonBack }}
@@ -57,62 +57,62 @@ export default {
sublist: null,
bookItems: [
{
- text: 'All',
+ text: this.$strings.LabelAll,
value: 'all'
},
{
- text: 'Genre',
+ text: this.$strings.LabelGenre,
value: 'genres',
sublist: true
},
{
- text: 'Tag',
+ text: this.$strings.LabelTag,
value: 'tags',
sublist: true
},
{
- text: 'Series',
+ text: this.$strings.LabelSeries,
value: 'series',
sublist: true
},
{
- text: 'Authors',
+ text: this.$strings.LabelAuthor,
value: 'authors',
sublist: true
},
{
- text: 'Narrator',
+ text: this.$strings.LabelNarrator,
value: 'narrators',
sublist: true
},
{
- text: 'Language',
+ text: this.$strings.LabelLanguage,
value: 'languages',
sublist: true
},
{
- text: 'Progress',
+ text: this.$strings.LabelProgress,
value: 'progress',
sublist: true
},
{
- text: 'Issues',
+ text: this.$strings.ButtonIssues,
value: 'issues',
sublist: false
}
],
podcastItems: [
{
- text: 'All',
+ text: this.$strings.LabelAll,
value: 'all'
},
{
- text: 'Genre',
+ text: this.$strings.LabelGenre,
value: 'genres',
sublist: true
},
{
- text: 'Tag',
+ text: this.$strings.LabelTag,
value: 'tags',
sublist: true
}
@@ -176,19 +176,19 @@ export default {
return [
{
id: 'finished',
- name: 'Finished'
+ name: this.$strings.LabelFinished
},
{
id: 'in-progress',
- name: 'In Progress'
+ name: this.$strings.LabelInProgress
},
{
id: 'not-started',
- name: 'Not Started'
+ name: this.$strings.LabelNotStarted
},
{
id: 'not-finished',
- name: 'Not Finished'
+ name: this.$strings.LabelNotFinished
}
]
},
diff --git a/components/modals/ItemDetailsModal.vue b/components/modals/ItemDetailsModal.vue
index ef2742b2..973d535d 100644
--- a/components/modals/ItemDetailsModal.vue
+++ b/components/modals/ItemDetailsModal.vue
@@ -2,7 +2,7 @@
-
Details
+
{{ $strings.HeaderDetails }}
diff --git a/components/modals/ItemMoreMenuModal.vue b/components/modals/ItemMoreMenuModal.vue
index ad7198eb..195b4bd9 100644
--- a/components/modals/ItemMoreMenuModal.vue
+++ b/components/modals/ItemMoreMenuModal.vue
@@ -2,7 +2,7 @@
-
+
@@ -52,7 +52,7 @@ export default {
// TODO: Implement on iOS
if (this.$platform !== 'ios' && !this.isPodcast) {
items.push({
- text: 'History',
+ text: this.$strings.ButtonHistory,
value: 'history',
icon: 'history'
})
@@ -61,7 +61,7 @@ export default {
if (!this.isPodcast || this.episode) {
if (!this.userIsFinished) {
items.push({
- text: 'Mark as Finished',
+ text: this.$strings.MessageMarkAsFinished,
value: 'markFinished',
icon: 'beenhere'
})
@@ -69,7 +69,7 @@ export default {
if (this.progressPercent > 0) {
items.push({
- text: 'Discard Progress',
+ text: this.$strings.MessageDiscardProgress,
value: 'discardProgress',
icon: 'backspace'
})
@@ -78,14 +78,14 @@ export default {
if ((!this.isPodcast && this.serverLibraryItemId) || (this.episode && this.serverEpisodeId)) {
items.push({
- text: 'Add to Playlist',
+ text: this.$strings.LabelAddToPlaylist,
value: 'playlist',
icon: 'playlist_add'
})
if (this.ereaderDeviceItems.length) {
items.push({
- text: 'Send ebook to device',
+ text: this.$strings.ButtonSendEbookToDevice,
value: 'sendEbook',
icon: 'send'
})
@@ -94,7 +94,7 @@ export default {
if (this.showRSSFeedOption) {
items.push({
- text: this.rssFeed ? 'RSS Feed' : 'Open RSS Feed',
+ text: this.rssFeed ? this.$strings.HeaderRSSFeed : this.$strings.HeaderOpenRSSFeed,
value: 'rssFeed',
icon: 'rss_feed'
})
@@ -102,20 +102,20 @@ export default {
if (this.localLibraryItemId) {
items.push({
- text: 'Manage Local Files',
+ text: this.$strings.ButtonManageLocalFiles,
value: 'manageLocal',
icon: 'folder'
})
if (!this.isPodcast) {
items.push({
- text: 'Delete Local Item',
+ text: this.$strings.ButtonDeleteLocalItem,
value: 'deleteLocal',
icon: 'delete'
})
} else if (this.localEpisodeId) {
items.push({
- text: 'Delete Local Episode',
+ text: this.$strings.ButtonDeleteLocalEpisode,
value: 'deleteLocalEpisode',
icon: 'delete'
})
@@ -124,7 +124,7 @@ export default {
if (!this.episode) {
items.push({
- text: 'More Info',
+ text: this.$strings.LabelMoreInfo,
value: 'details',
icon: 'info'
})
@@ -279,7 +279,7 @@ export default {
if (this.userItemProgress && this.userItemProgress.progress > 0 && !this.userIsFinished) {
const { value } = await Dialog.confirm({
title: 'Confirm',
- message: 'Are you sure you want to mark this item as Finished?'
+ message: this.$strings.MessageConfirmMarkAsFinished
})
if (!value) return
}
@@ -304,7 +304,7 @@ export default {
}
await this.$nativeHttp.patch(`/api/me/progress/${this.serverLibraryItemId}`, updatePayload).catch((error) => {
console.error('Failed', error)
- this.$toast.error(`Failed to mark as ${updatePayload.isFinished ? 'Finished' : 'Not Finished'}`)
+ this.$toast.error(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedFailed : this.$strings.ToastItemMarkedAsNotFinishedFailed)
})
}
this.$emit('update:processing', false)
@@ -335,7 +335,7 @@ export default {
}
await this.$nativeHttp.patch(`/api/me/progress/${this.serverLibraryItemId}/${this.serverEpisodeId}`, updatePayload).catch((error) => {
console.error('Failed', error)
- this.$toast.error(`Failed to mark as ${updatePayload.isFinished ? 'Finished' : 'Not Finished'}`)
+ this.$toast.error(updatePayload.isFinished ? this.$strings.ToastItemMarkedAsFinishedFailed : this.$strings.ToastItemMarkedAsNotFinishedFailed)
})
}
this.$emit('update:processing', false)
@@ -345,7 +345,7 @@ export default {
const { value } = await Dialog.confirm({
title: 'Confirm',
- message: 'Are you sure you want to reset your progress?'
+ message: this.$strings.MessageConfirmDiscardProgress
})
if (value) {
this.$emit('update:processing', true)
diff --git a/components/modals/LibrariesModal.vue b/components/modals/LibrariesModal.vue
index d677082d..ed0e2db4 100644
--- a/components/modals/LibrariesModal.vue
+++ b/components/modals/LibrariesModal.vue
@@ -2,7 +2,7 @@
-
Libraries
+
{{ $strings.HeaderLibraries }}
diff --git a/components/modals/OrderModal.vue b/components/modals/OrderModal.vue
index 4ff6417f..c2106e8a 100644
--- a/components/modals/OrderModal.vue
+++ b/components/modals/OrderModal.vue
@@ -29,83 +29,83 @@ export default {
return {
bookItems: [
{
- text: 'Title',
+ text: this.$strings.LabelTitle,
value: 'media.metadata.title'
},
{
- text: 'Author (First Last)',
+ text: this.$strings.LabelAuthorFirstLast,
value: 'media.metadata.authorName'
},
{
- text: 'Author (Last, First)',
+ text: this.$strings.LabelAuthorLastFirst,
value: 'media.metadata.authorNameLF'
},
{
- text: 'Published Year',
+ text: this.$strings.LabelPublishYear,
value: 'media.metadata.publishedYear'
},
{
- text: 'Added At',
+ text: this.$strings.LabelAddedAt,
value: 'addedAt'
},
{
- text: 'Size',
+ text: this.$strings.LabelSize,
value: 'size'
},
{
- text: 'Duration',
+ text: this.$strings.LabelDuration,
value: 'media.duration'
},
{
- text: 'File Birthtime',
+ text: this.$strings.LabelFileBirthtime,
value: 'birthtimeMs'
},
{
- text: 'File Modified',
+ text: this.$strings.LabelFileModified,
value: 'mtimeMs'
}
],
podcastItems: [
{
- text: 'Title',
+ text: this.$strings.LabelTitle,
value: 'media.metadata.title'
},
{
- text: 'Author',
+ text: this.$strings.LabelAuthor,
value: 'media.metadata.author'
},
{
- text: 'Added At',
+ text: this.$strings.LabelAddedAt,
value: 'addedAt'
},
{
- text: 'Size',
+ text: this.$strings.LabelSize,
value: 'size'
},
{
- text: 'File Birthtime',
+ text: this.$strings.LabelFileBirthtime,
value: 'birthtimeMs'
},
{
- text: 'File Modified',
+ text: this.$strings.LabelFileModified,
value: 'mtimeMs'
}
],
episodeItems: [
{
- text: 'Pub Date',
+ text: this.$strings.LabelPubDate,
value: 'publishedAt'
},
{
- text: 'Title',
+ text: this.$strings.LabelTitle,
value: 'title'
},
{
- text: 'Season',
+ text: this.$strings.LabelSeason,
value: 'season'
},
{
- text: 'Episode',
+ text: this.$strings.LabelEpisode,
value: 'episode'
}
]
diff --git a/components/modals/PlaybackSpeedModal.vue b/components/modals/PlaybackSpeedModal.vue
index 82f557f7..6e711e10 100644
--- a/components/modals/PlaybackSpeedModal.vue
+++ b/components/modals/PlaybackSpeedModal.vue
@@ -2,7 +2,7 @@
-
Playback Speed
+
{{ $strings.LabelPlaybackSpeed }}
diff --git a/components/modals/SelectLocalFolderModal.vue b/components/modals/SelectLocalFolderModal.vue
index 514eb453..92d5b2e3 100644
--- a/components/modals/SelectLocalFolderModal.vue
+++ b/components/modals/SelectLocalFolderModal.vue
@@ -2,7 +2,7 @@
-
Select Download Location
+
{{ $strings.HeaderSelectDownloadLocation }}
@@ -71,7 +71,7 @@ export default {
if (!localFolders.some((lf) => lf.id === `internal-${this.mediaType}`)) {
localFolders.push({
id: `internal-${this.mediaType}`,
- name: 'Internal App Storage',
+ name: this.$strings.LabelInternalAppStorage,
mediaType: this.mediaType
})
}
diff --git a/components/modals/SleepTimerLengthModal.vue b/components/modals/SleepTimerLengthModal.vue
index 3f94454e..f1313d91 100644
--- a/components/modals/SleepTimerLengthModal.vue
+++ b/components/modals/SleepTimerLengthModal.vue
@@ -2,7 +2,7 @@
-
Sleep Timer
+
{{ $strings.HeaderSleepTimer }}
@@ -23,7 +23,7 @@
{{ manualTimeoutMin }} min
add