forked from didirus/AstralRinth
feat: remove nuxt i18n for in house i18n for web (#5131)
* feat: remove nuxt i18n for in house * cleanup: remove old nuxt/i18n patch * prepr --------- Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import {
|
||||
Admonition,
|
||||
commonSettingsMessages,
|
||||
injectI18n,
|
||||
IntlFormatted,
|
||||
LanguageSelector,
|
||||
languageSelectorMessages,
|
||||
@@ -10,8 +11,7 @@ import {
|
||||
} from '@modrinth/ui'
|
||||
|
||||
const { formatMessage } = useVIntl()
|
||||
const { $i18n } = useNuxtApp()
|
||||
const { locale, setLocale } = $i18n
|
||||
const { locale, setLocale } = injectI18n()
|
||||
|
||||
const platform = formatMessage(languageSelectorMessages.platformSite)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user