新增模块
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { texts } from './locales';
|
||||
import type { I18n } from './locales';
|
||||
|
||||
export type { I18n };
|
||||
|
||||
/**
|
||||
* 全站只有中文一套文案(本系统不面向日本用户),
|
||||
* 因此不再需要 Locale 状态、localStorage 记忆与 Provider:直接读词典。
|
||||
*/
|
||||
export function useText(): { t: I18n } {
|
||||
return { t: texts };
|
||||
}
|
||||
Reference in New Issue
Block a user