core-player / vue-core-video-player

🍟 A Lightweight Video Player For Vue.js.
https://core-player.github.io/vue-core-video-player/
463 stars 79 forks source link

vue-core-video-player and i18n error #59

Open Sh1ftOo opened 3 years ago

Sh1ftOo commented 3 years ago

I use vue core video player and i18n plugin. When I try to use {{ $t('message') }}, I get the output

{ "dashboard": { "btn": { "play": "Play", "pause": "Pause", "fullscreen": "Full Screen", "exitFullscreen": "Exit Full Screen", "mute": "Mute", "unmute": "Unmute", "back": "Back", "pip": "Picture-in-Picture" }, "settings": { "autoplay": "Autoplay", "loop": "Loop", "speed": "Speed", "resolution": "Resolution" } }, "layers": { "error": { "2404": "Video Source Not Found", "2502": "Media Network Error", "2503": "Video Cannot DECODE", "2504": "Video Cannot Play!", "title": "(O_O)? Error!" }, "loading": { "msg": "Loading ..." } } }

But my "message": "hello world"

When I comment import VueCoreVideoPlayer from 'vue-core-video-player' Vue.use(VueCoreVideoPlayer), I see my message.

How can I use i18n plugin normally without uninstalling vue core video player?

hugorabelo commented 3 years ago

I have the same problem

Sh1ftOo commented 3 years ago

I have the same problem

I solved this problem. Use $tc for the solution your problem

didiosn commented 3 years ago

I have the same problem

I solved this problem. Use $tc for the solution your problem

Thanks to you. Yous saved me. Can you explain why please ?

Bkanor commented 3 years ago

I have the same problem

I solved this problem. Use $tc for the solution your problem

Thanks to you. Yous saved me. Can you explain why please ?

Because plugin replace method $t globally...

NoumanAhmad-Braqsol commented 10 months ago

Please explain where we need to replace $tc?