您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

errors.js 610B

1234567891011121314151617
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. exports.getErrorMap = exports.setErrorMap = exports.defaultErrorMap = void 0;
  7. const en_1 = __importDefault(require("./locales/en"));
  8. exports.defaultErrorMap = en_1.default;
  9. let overrideErrorMap = en_1.default;
  10. function setErrorMap(map) {
  11. overrideErrorMap = map;
  12. }
  13. exports.setErrorMap = setErrorMap;
  14. function getErrorMap() {
  15. return overrideErrorMap;
  16. }
  17. exports.getErrorMap = getErrorMap;