You've already forked AstralRinth
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:
@@ -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(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user