Add UI module translations to Modrinth App (#5489)

* Add UI module translations to Modrinth App

* Replace `await` with `eager: true`

---------

Co-authored-by: Calum H. <calum@modrinth.com>
This commit is contained in:
Jerozgen
2026-03-07 13:13:24 +03:00
committed by GitHub
parent 4b6de7526c
commit d4932d3089
8 changed files with 27 additions and 16 deletions

View File

@@ -148,7 +148,7 @@ export const coreNags: Nag[] = [
}),
status: 'suggestion',
shouldShow: (context: NagContext) => {
if (!!context.projectV3?.minecraft_server) return false
if (context.projectV3?.minecraft_server) return false
const featuredGalleryImage = context.project.gallery?.find((img) => img.featured)
return context.project?.gallery?.length === 0 || !featuredGalleryImage
},

View File

@@ -1,4 +1,5 @@
import { defineMessage } from '@modrinth/ui'
import type { Nag, NagContext } from '../../types/nags'
export const serverProjectsNags: Nag[] = [

View File

@@ -21,7 +21,7 @@ const links: Stage = {
),
text: async (project, projectV3) => {
let text
if (!!projectV3?.minecraft_server)
if (projectV3?.minecraft_server)
text = (await import('../messages/checklist-text/links/server.md?raw')).default
else text = (await import('../messages/checklist-text/links/base.md?raw')).default