+
+
{{ formatMessage(messages.serversPromoTitle) }}
- {{ formatMessage(messages.serversPromoPricing, { monthly: `${formatMessage(projectPageMessages.monthly)}` }) }}
+
+
+
+
+
+
+
@@ -991,7 +1002,8 @@ import {
useRelativeTime,
} from '@modrinth/ui'
import VersionSummary from '@modrinth/ui/src/components/version/VersionSummary.vue'
-import { formatCategory, formatProjectType, renderString } from '@modrinth/utils'
+import { formatCategory, formatPrice, formatProjectType, renderString } from '@modrinth/utils'
+import { IntlFormatted } from '@vintl/vintl/components'
import { useLocalStorage } from '@vueuse/core'
import dayjs from 'dayjs'
import { Tooltip } from 'floating-vue'
@@ -1024,7 +1036,7 @@ const tags = useTags()
const flags = useFeatureFlags()
const cosmetics = useCosmetics()
-const { formatMessage } = useVIntl()
+const { locale, formatMessage } = useVIntl()
const settingsModal = ref()
const downloadModal = ref()
@@ -1254,10 +1266,6 @@ const messages = defineMessages({
id: 'project.moderation.title',
defaultMessage: 'Moderation',
},
- monthly: {
- id: 'project.actions.servers-promo.monthly',
- defaultMessage: ' / month',
- },
noCollectionsFound: {
id: 'project.collections.none-found',
defaultMessage: 'No collections found.',
@@ -1336,7 +1344,7 @@ const messages = defineMessages({
},
serversPromoPricing: {
id: 'project.actions.servers-promo.pricing',
- defaultMessage: 'Starting at $5{monthly}',
+ defaultMessage: 'Starting at {price}
/ month',
},
serversPromoTitle: {
id: 'project.actions.servers-promo.title',