跳到主要内容

get 获取本地化文本

get

类型: MethodDeclaration

定义位置: local.ts

描述

获取本地化文本

参数 id: 本地化文本ID

返回值:当前语言包的本地化文本

参数

参数名类型描述默认值
idstring--

返回值

类型: string

当前语言包的本地化文本

源代码

位置: 第 147 行

private get(id: string): string {
const content = this.textMap[id]?.contents[this.active]
return typeof content === 'function' ? content() : content!
}

文档生成时间:2025/7/7 12:07:06