03536bd8415ddc7dc1e334283fb048fac6440b15.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, JsonUtil, TableLanguage, _crd;
  4. function _reportPossibleCrUseOfJsonUtil(extras) {
  5. _reporterNs.report("JsonUtil", "db://oops-framework/core/utils/JsonUtil", _context.meta, extras);
  6. }
  7. _export("TableLanguage", void 0);
  8. return {
  9. setters: [function (_unresolved_) {
  10. _reporterNs = _unresolved_;
  11. }, function (_cc) {
  12. _cclegacy = _cc.cclegacy;
  13. }, function (_unresolved_2) {
  14. JsonUtil = _unresolved_2.JsonUtil;
  15. }],
  16. execute: function () {
  17. _crd = true;
  18. _cclegacy._RF.push({}, "74f4fgFfZxHnqCfURfaciMV", "TableLanguage", undefined);
  19. _export("TableLanguage", TableLanguage = class TableLanguage {
  20. constructor() {
  21. this.data = void 0;
  22. /** 编号【KEY】 */
  23. this.id = 0;
  24. }
  25. init(id) {
  26. var table = (_crd && JsonUtil === void 0 ? (_reportPossibleCrUseOfJsonUtil({
  27. error: Error()
  28. }), JsonUtil) : JsonUtil).get(TableLanguage.TableName);
  29. this.data = table[id];
  30. this.id = id;
  31. }
  32. /** 简体中文 */
  33. get zh() {
  34. return this.data.zh;
  35. }
  36. /** 英文 */
  37. get en() {
  38. return this.data.en;
  39. }
  40. });
  41. TableLanguage.TableName = "Language";
  42. _cclegacy._RF.pop();
  43. _crd = false;
  44. }
  45. };
  46. });
  47. //# sourceMappingURL=03536bd8415ddc7dc1e334283fb048fac6440b15.js.map