forked from didirus/AstralRinth
fix: error "27" (#5122)
* fix: error 27 * fix: sentry only in prod * fix: sentry env * Revert "fix: error 27" This reverts commit 66ee482a0567a5e53326e576b1bc6af0542a7fe3. * feat: attempt to fix error 27
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { computed, type ComputedRef } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import { getSafeI18n } from './i18n'
|
||||
|
||||
export type Formatter = (value: Date | number, options?: FormatOptions) => string
|
||||
|
||||
@@ -10,7 +11,7 @@ export interface FormatOptions {
|
||||
const formatters = new Map<string, ComputedRef<Intl.RelativeTimeFormat>>()
|
||||
|
||||
export function useRelativeTime(): Formatter {
|
||||
const { locale } = useI18n()
|
||||
const { locale } = getSafeI18n()
|
||||
|
||||
const formatterRef = computed(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user