fix(stage-tamagotchi): provide the missing core components to createCoreContext (#1288)

This commit is contained in:
Makito
2026-03-11 23:34:00 +08:00
committed by GitHub
parent 783342c941
commit 28109a8f02
2 changed files with 17 additions and 1 deletions
@@ -9,7 +9,7 @@ import type {
} from '@intlify/core'
import { useLogg } from '@guiiai/logg'
import { createCoreContext, translate } from '@intlify/core'
import { compile, createCoreContext, fallbackWithLocaleChain, resolveValue, translate } from '@intlify/core'
import { effect, signal } from 'alien-signals'
import { isString } from 'es-toolkit'
@@ -149,6 +149,21 @@ export function createI18n<Schema extends Record<string, any> = Record<string, a
missingWarn: false,
warnHtmlMessage: false,
fallbackFormat: true,
// Register the messageCompiler, messageResolver, and localeFallbacker.
//
// While vue-i18n registers them globally:
//
// ```
// registerMessageCompiler(compile)
// registerMessageResolver(resolveValue)
// registerLocaleFallbacker(fallbackWithLocaleChain)
// ```
// See: https://github.com/intlify/vue-i18n/blob/884060b63122ccca3088e4af283ef223a1e2bd29/packages/vue-i18n/src/runtime.ts#L15-L22
//
// ... but we will provide them to `createCoreContext` here for better scoping.
messageCompiler: compile,
messageResolver: resolveValue,
localeFallbacker: fallbackWithLocaleChain,
...options,
})
+1
View File
@@ -101,6 +101,7 @@ words:
- esaxx
- eventa
- Factorio
- fallbacker
- feaxios
- Flathub
- flexsearch