message: fix(shared): a workaround for vuepress/vuepress#1252
diff: -import { useRouteLocale } from "@vuepress/client";
  -import { type LocaleData } from "@vuepress/shared";
  -import { type ComputedRef, computed } from "vue";
  +import { useSiteData } from "@vuepress/client";
  +import { type LocaleData, resolveLocalePath } from "@vuepress/shared";
  +import { type ComputedRef, computed, ref, watch } from "vue";
  +import { useRoute } from "vue-router";
  import { type RequiredLocaleConfig } from "../../shared/index.js";
  @@ -10,10 +11,30 @@ import { type RequiredLocaleConfig } from "../../shared/index.js";
  * @param localesConfig client locale Config
  * @returns current locale config
  */
  +// FIXME: workaround for https://github.com/vuepress/vuepress-next/issues/1252
  export const useLocaleConfig = <T extends LocaleData>(
  localesConfig: RequiredLocaleConfig<T>
  ): ComputedRef<T> => {
  - const routeLocale = useRouteLocale();
  + const route = useRoute();
  + const routeLocale = ref("/");
  + const siteData = useSiteData();
  - return computed(() => localesConfig[routeLocale.value]);
  + const locale = computed(() => localesConfig[routeLocale.value]);
  +
  + watch(
  + () => siteData.value,
  + () => {
  + routeLocale.value = resolveLocalePath(siteData.value.locales, route.path);
  + }
  + );
  +
  + watch(
  + () => route.path,
  + () => {
  + routeLocale.value = resolveLocalePath(siteData.value.locales, route.path);
  + },
  + { immediate: true }
  + );
  +
  + return locale;
  };
  