mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-22 14:37:06 +08:00
27 lines
556 B
TypeScript
27 lines
556 B
TypeScript
|
|
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";
|
|
|
|
export class TableLanguage {
|
|
static TableName: string = "Language";
|
|
|
|
private data: any;
|
|
|
|
init(id: number) {
|
|
var table = JsonUtil.get(TableLanguage.TableName);
|
|
this.data = table[id];
|
|
this.id = id;
|
|
}
|
|
|
|
/** 编号【KEY】 */
|
|
id: number = 0;
|
|
|
|
/** 简体中文 */
|
|
get zh(): string {
|
|
return this.data.zh;
|
|
}
|
|
/** 英文 */
|
|
get en(): string {
|
|
return this.data.en;
|
|
}
|
|
}
|
|
|