forked from didirus/AstralRinth
@@ -1,3 +1,4 @@
|
||||
import { injectI18n } from '@modrinth/ui'
|
||||
import dayjs from 'dayjs'
|
||||
import { computed, ref, watch } from 'vue'
|
||||
|
||||
@@ -7,8 +8,7 @@ import { computed, ref, watch } from 'vue'
|
||||
const { unix } = dayjs
|
||||
|
||||
export function useCountryNames(style = 'long') {
|
||||
const { $i18n } = useNuxtApp()
|
||||
const locale = $i18n.locale
|
||||
const { locale } = injectI18n()
|
||||
const displayNames = computed(
|
||||
() => new Intl.DisplayNames([locale.value], { type: 'region', style }),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user