| 123456789101112131415 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.formatErrors = exports.I18nError = void 0;
- function I18nError(message) {
- return new Error("[i18n] error: " + message);
- }
- exports.I18nError = I18nError;
- function formatErrors(errors) {
- var tpl = ['I18n errors found, please fix following issues before proceed:'];
- for (var i = 0; i < errors.length; i++) {
- tpl.push(i + 1 + ". " + errors[i].message);
- }
- return tpl.join('\n');
- }
- exports.formatErrors = formatErrors;
|