项目文件夹

文件
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

19 行
511 B
TypeScript

/**
* useWechatStrings — 微信专用 i18n hook
*
* 简化用法,只需一行:
* import { useWechatStrings } from '../hooks/useWechatStrings';
* const t = useWechatStrings();
* <span>{t.settings_title}</span>
*/
import { useAppStrings } from '@/os/useAppStrings';
import { strings } from '../res/strings';
import { stringsEn } from '../res/strings.en';
export function useWechatStrings() {
return useAppStrings(strings, stringsEn);
}
export type WechatStringKey = keyof typeof strings;