From c9bfc4e9b6acb9d21cfcec4e776cebc9965bae41 Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Fri, 16 Jan 2026 09:07:40 +0000 Subject: [PATCH] fix: analytics.js using old i18n impl (#5132) * fix i18n * fix: lint --- apps/frontend/src/utils/analytics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/utils/analytics.js b/apps/frontend/src/utils/analytics.js index cfa73703..aa1a435a 100644 --- a/apps/frontend/src/utils/analytics.js +++ b/apps/frontend/src/utils/analytics.js @@ -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 }), )