mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 01:26:23 +00:00
fix: error "27" (#5122)
* fix: error 27
* fix: sentry only in prod
* fix: sentry env
* Revert "fix: error 27"
This reverts commit 66ee482a05.
* feat: attempt to fix error 27
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import IntlMessageFormat, { type FormatXMLElementFn, type PrimitiveType } from 'intl-messageformat'
|
||||
import { computed, useSlots, type VNode } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import type { MessageDescriptor } from '../../composables/i18n'
|
||||
import { getSafeI18n, type MessageDescriptor } from '../../composables/i18n'
|
||||
|
||||
const props = defineProps<{
|
||||
messageId: MessageDescriptor
|
||||
@@ -11,7 +10,7 @@ const props = defineProps<{
|
||||
}>()
|
||||
|
||||
const slots = useSlots()
|
||||
const { t, locale } = useI18n()
|
||||
const { t, locale } = getSafeI18n()
|
||||
|
||||
const formattedParts = computed(() => {
|
||||
const key = props.messageId.id
|
||||
|
||||
Reference in New Issue
Block a user