feat: remove nuxt i18n for in house i18n for web (#5131)

* feat: remove nuxt i18n for in house

* cleanup: remove old nuxt/i18n patch

* prepr

---------

Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
Calum H.
2026-01-15 23:49:38 +00:00
committed by GitHub
parent 4497131206
commit a903e46be9
16 changed files with 275 additions and 787 deletions

View File

@@ -2,7 +2,8 @@
import IntlMessageFormat, { type FormatXMLElementFn, type PrimitiveType } from 'intl-messageformat'
import { computed, useSlots, type VNode } from 'vue'
import { getSafeI18n, type MessageDescriptor } from '../../composables/i18n'
import type { MessageDescriptor } from '../../composables/i18n'
import { injectI18n } from '../../providers/i18n'
const props = defineProps<{
messageId: MessageDescriptor
@@ -10,7 +11,7 @@ const props = defineProps<{
}>()
const slots = useSlots()
const { t, locale } = getSafeI18n()
const { t, locale } = injectI18n()
const formattedParts = computed(() => {
const key = props.messageId.id