Make jump labels compatible with i18n/translation

This commit is contained in:
Benjamin Porter
2025-12-29 17:08:37 -07:00
parent 589ffcecca
commit f548163689
5 changed files with 32 additions and 22 deletions
+6 -4
View File
@@ -187,8 +187,10 @@
<script>
import { Dialog } from '@capacitor/dialog'
import jumpLabelMixin from '@/mixins/jumpLabel'
export default {
mixins: [jumpLabelMixin],
data() {
return {
loading: false,
@@ -362,10 +364,10 @@ export default {
return this.$languageCodeOptions || []
},
jumpForwardOption() {
return this.currentJumpForwardItem.label || ''
return this.getJumpLabel(this.settings.jumpForwardTime)
},
jumpBackwardsOption() {
return this.currentJumpBackwardsItem.label || ''
return this.getJumpLabel(this.settings.jumpBackwardsTime)
},
themeOptionItems() {
return [
@@ -448,13 +450,13 @@ export default {
else if (this.moreMenuSetting === 'androidAutoBrowseSeriesSequenceOrder') return this.androidAutoBrowseSeriesSequenceOrderItems
else if (this.moreMenuSetting === 'jumpForward')
return this.jumpForwardItems.map((i) => ({
text: i.label,
text: this.getJumpLabel(i.value),
value: i.value,
icon: i.icon
}))
else if (this.moreMenuSetting === 'jumpBackwards')
return this.jumpBackwardsItems.map((i) => ({
text: i.label,
text: this.getJumpLabel(i.value),
value: i.value,
icon: i.icon
}))