| | |
| | | /*! |
| | | * core-base v9.14.5 |
| | | * core-base v9.14.4 |
| | | * (c) 2025 kazuya kawaguchi |
| | | * Released under the MIT License. |
| | | */ |
| | | import { getGlobalThis, isObject, hasOwn, isFunction, isString, create, isNumber, isPlainObject, assign, join, toDisplayString, isArray, incrementer, format as format$1, isPromise, isBoolean, warn, isRegExp, warnOnce, sanitizeTranslatedHtml, escapeHtml, inBrowser, mark, measure, isEmptyObject, generateCodeFrame, generateFormatCacheKey, isDate } from '@intlify/shared'; |
| | | import { getGlobalThis, isObject, hasOwn, isFunction, isString, create, isNumber, isPlainObject, assign, join, toDisplayString, isArray, incrementer, format as format$1, isPromise, isBoolean, warn, isRegExp, warnOnce, escapeHtml, inBrowser, mark, measure, isEmptyObject, generateCodeFrame, generateFormatCacheKey, isDate } from '@intlify/shared'; |
| | | import { CompileWarnCodes, CompileErrorCodes, createCompileError, detectHtmlTag, defaultOnError, baseCompile as baseCompile$1 } from '@intlify/message-compiler'; |
| | | export { CompileErrorCodes, createCompileError } from '@intlify/message-compiler'; |
| | | |
| | |
| | | * Intlify core-base version |
| | | * @internal |
| | | */ |
| | | const VERSION = '9.14.5'; |
| | | const VERSION = '9.14.4'; |
| | | const NOT_REOSLVED = -1; |
| | | const DEFAULT_LOCALE = 'en-US'; |
| | | const MISSING_RESOLVE_VALUE = ''; |
| | |
| | | const msgContext = createMessageContext(ctxOptions); |
| | | const messaged = evaluateMessage(context, msg, msgContext); |
| | | // if use post translation option, proceed it with handler |
| | | let ret = postTranslation |
| | | const ret = postTranslation |
| | | ? postTranslation(messaged, key) |
| | | : messaged; |
| | | // apply HTML sanitization for security |
| | | if (escapeParameter && isString(ret)) { |
| | | ret = sanitizeTranslatedHtml(ret); |
| | | } |
| | | // NOTE: experimental !! |
| | | if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) { |
| | | // prettier-ignore |