MCPcopy Create free account
hub / github.com/esengine/esengine / t

Method t

packages/editor-core/src/tokens.ts:47–47  ·  view source on GitHub ↗

翻译文本 | Translate text

(key: string, params?: TranslationParams, fallback?: string)

Source from the content-addressed store, hash-verified

45 setLocale(locale: Locale): void;
46 /** 翻译文本 | Translate text */
47 t(key: string, params?: TranslationParams, fallback?: string): string;
48 /** 扩展翻译 | Extend translations */
49 extendTranslations(namespace: string, translations: PluginTranslations): void;
50 /** 监听语言变化 | Listen to locale changes */

Callers 1

useLocaleFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected