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

@@ -1,6 +1,6 @@
import { computed, type ComputedRef } from 'vue'
import { getSafeI18n } from './i18n'
import { injectI18n } from '../providers/i18n'
export type Formatter = (value: Date | number, options?: FormatOptions) => string
@@ -11,7 +11,7 @@ export interface FormatOptions {
const formatters = new Map<string, ComputedRef<Intl.RelativeTimeFormat>>()
export function useRelativeTime(): Formatter {
const { locale } = getSafeI18n()
const { locale } = injectI18n()
const formatterRef = computed(
() =>