You've already forked AstralRinth
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,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 }),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user