First commit to the code repository

This commit is contained in:
Liujian committed 2025-07-20 22:38:52 +08:00
1 parent 692cdee407
commit 0c0dd1cb56
323 files changed
+45712

No files matched your search

@@ -0,0 +1,19 @@
"use client";
import { useTranslation as useI18nTranslation } from "@/shared/lib/useTranslation";
import { usePlatformConfig } from "@/shared/contexts/PlatformConfigContext";
export const useTranslationWithPlatform = () => {
const { t: originalT, ...rest } = useI18nTranslation();
const { platformConfig } = usePlatformConfig();
const t = (key: string, options?: any) => {
const mergedOptions = {
platformName: platformConfig.name || "XPack",
...options,
};
return originalT(key, mergedOptions);
};
return { t, ...rest };
};