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
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