diff --git a/src/assets/qualitySelector.ts b/src/assets/qualitySelector.ts index acf13a5..1699893 100644 --- a/src/assets/qualitySelector.ts +++ b/src/assets/qualitySelector.ts @@ -3,7 +3,7 @@ import videojs from 'video.js' import 'videojs-contrib-quality-levels' import type { QualityLevelList, QualityLevel } from 'videojs-contrib-quality-levels' -import { useI18n } from 'vue-i18n' +import i18n from '@/i18n' export const createQualitySelector = (player: any) => { const qualityLevels: QualityLevelList = player.qualityLevels() @@ -11,7 +11,7 @@ export const createQualitySelector = (player: any) => { const MenuItem = videojs.getComponent('MenuItem') let formatedQualities: { name: string; index: number; id: string }[] - let t = useI18n() + let t = i18n.global.t const setQuality = (id: string) => { const found = formatedQualities.find((i) => i.id === id)