UNPKG

@intlify/core

Version:
32 lines (29 loc) 1 kB
/*! * core v11.1.12 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */ import { registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain } from '@intlify/core-base'; export * from '@intlify/core-base'; import { getGlobalThis } from '@intlify/shared'; /** * This is only called in esm-bundler builds. * istanbul-ignore-next */ function initFeatureFlags() { if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') { getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false; } if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') { getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false; } } { initFeatureFlags(); } // register message compiler at @intlify/core registerMessageCompiler(compile); // register message resolver at @intlify/core registerMessageResolver(resolveValue); // register fallback locale at @intlify/core registerLocaleFallbacker(fallbackWithLocaleChain);