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:
@@ -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
|
||||
},
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { defineMessage } from '@modrinth/ui'
|
||||
|
||||
import type { Nag, NagContext } from '../../types/nags'
|
||||
|
||||
export const serverProjectsNags: Nag[] = [
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user