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:
Calum H.
2026-01-15 00:38:23 +00:00
committed by GitHub
parent 3ffa78aa07
commit 454c708fd6
6 changed files with 39 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
import dayjs from 'dayjs'
import { computed, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'
// note: build step can miss unix import for some reason, so
// we have to import it like this
@@ -8,7 +7,8 @@ import { useI18n } from 'vue-i18n'
const { unix } = dayjs
export function useCountryNames(style = 'long') {
const { locale } = useI18n()
const { $i18n } = useNuxtApp()
const locale = $i18n.locale
const displayNames = computed(
() => new Intl.DisplayNames([locale.value], { type: 'region', style }),
)