refactor: use full i18n keys for quality speed text instead of concatenation

This commit is contained in:
2026-06-13 20:16:20 +08:00
parent a9929666a5
commit cf3060b7fe
3 changed files with 9 additions and 5 deletions

View File

@@ -25,9 +25,9 @@ const speedOptions = [1, 2, 4]
const showQualityMenu = ref(false) const showQualityMenu = ref(false)
const qualityOptions = computed(() => [ const qualityOptions = computed(() => [
{ value: '', label: t('ui.qualityAuto'), speed: '' }, { value: '', label: t('ui.qualityAuto'), speed: '' },
{ value: '超清 (1080P)', label: t('ui.quality1080p'), speed: t('ui.qualitySpeed') + ' 320KB/s' }, { value: '超清 (1080P)', label: t('ui.quality1080p'), speed: t('ui.qualitySpeed1080p') },
{ value: '高清 (720P)', label: t('ui.quality720p'), speed: t('ui.qualitySpeed') + ' 256KB/s' }, { value: '高清 (720P)', label: t('ui.quality720p'), speed: t('ui.qualitySpeed720p') },
{ value: '标清 (480P)', label: t('ui.quality480p'), speed: t('ui.qualitySpeed') + ' 100KB/s' }, { value: '标清 (480P)', label: t('ui.quality480p'), speed: t('ui.qualitySpeed480p') },
]) ])
function currentQualityLabel() { function currentQualityLabel() {

View File

@@ -42,6 +42,8 @@
"quality1080p": "1080p", "quality1080p": "1080p",
"quality720p": "720p", "quality720p": "720p",
"quality480p": "480p", "quality480p": "480p",
"qualitySpeed": "Requires" "qualitySpeed1080p": "Requires 320KB/s",
"qualitySpeed720p": "Requires 256KB/s",
"qualitySpeed480p": "Requires 100KB/s"
} }
} }

View File

@@ -42,6 +42,8 @@
"quality1080p": "超清", "quality1080p": "超清",
"quality720p": "高清", "quality720p": "高清",
"quality480p": "标清", "quality480p": "标清",
"qualitySpeed": "需要" "qualitySpeed1080p": "需要 320KB/s",
"qualitySpeed720p": "需要 256KB/s",
"qualitySpeed480p": "需要 100KB/s"
} }
} }