xdlumia / vue3-video-play

适用于 Vue3 的 hls.js 播放器组件,配置丰富,界面还算好看
https://codelife.cc/vue3-video-play/
575 stars 96 forks source link

Add language props features #148

Closed khaledOghli closed 5 months ago

khaledOghli commented 5 months ago

Screenshot 2024-01-18 at 2 05 44 PM

Integrate the useUserLocale feature to empower users, allowing them to customize labels based on their preferred language. This enhancement enhances the user experience by providing a more personalized and localized interface. Additionally, I kindly request the inclusion of documentation updates to reflect the new useUserLocale feature on the documentation page. Please review and merge. Thank you!

import { videoPlay, useUserLocale } from "../lib/index.js"; or import { useUserLocale } from './../config/locale-service';

To use it : const { userLocale } = useUserLocale();

// example : updateUserLocale({ mirrorScreen: "镜面屏幕", // ...local keys });

All local keys have been diligently included in the config/locales.ts file, ensuring comprehensive coverage and proper organization of localization data