Skip to content

Commit f4a15bd

Browse files
authored
fix: feature flags (#342)
1 parent feb92e9 commit f4a15bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-i18n/src/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ export function createI18n<
322322
// prettier-ignore
323323
const __legacyMode = __FEATURE_LEGACY_API__ && isBoolean(options.legacy)
324324
? options.legacy
325-
: true
326-
const __globalInjection = __FEATURE_LEGACY_API__ && !!options.globalInjection
325+
: __FEATURE_LEGACY_API__
326+
const __globalInjection = !!options.globalInjection
327327
const __instances = new Map<
328328
ComponentInternalInstance,
329329
VueI18n<Messages> | Composer<Messages>

0 commit comments

Comments
 (0)