errors.js 610 B

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;