lite-cc-lang
TypeScript icon, indicating that this package has built-in type declarations

11.5.1 • Public • Published

Version

代码

LangAccessorBase - 多语言读取器

const langAccessor: LangAccessorBase;

// 获取当前语言缩写
const res = langAccessor.langAbbr;

// 当参数为多个时 多语言键1的文本包含{0}...{n}
const res = await langAccessor.get('多语言键1', ..., '多语言键n');

// 多语言数据内是否包含该键
const res = await langAccessor.has('多语言键');

Readme

Keywords

Package Sidebar

Install

npm i lite-cc-lang

Weekly Downloads

3

Version

11.5.1

License

GPL-3.0

Unpacked Size

40.4 kB

Total Files

9

Last publish

Collaborators

  • ahl5esoft