| | |
| | | /*! |
| | | * core-base v9.14.5 |
| | | * core-base v9.14.4 |
| | | * (c) 2025 kazuya kawaguchi |
| | | * Released under the MIT License. |
| | | */ |
| | |
| | | * 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 && shared.isString(ret)) { |
| | | ret = shared.sanitizeTranslatedHtml(ret); |
| | | } |
| | | return ret; |
| | | } |
| | | function escapeParams(options) { |