fix: minecraft title clause update

This commit is contained in:
IMB11 2025-07-16 20:52:01 +01:00
parent 2f1a31a9e4
commit 28c8b59820
2 changed files with 3 additions and 2 deletions

View File

@ -175,7 +175,7 @@ A nag represents a specific issue or suggestion for improvement. Each nag has:
### Internationalization
The nag system uses Vue I18n for internationalization. Each nag category has a corresponding `.i18n.ts` file containing message definitions:
Each nag category has a corresponding `.i18n.ts` file containing message definitions:
```typescript
// Example from core.i18n.ts

View File

@ -145,7 +145,8 @@ export const descriptionNags: Nag[] = [
status: 'required',
shouldShow: (context: NagContext) => {
const title = context.project.title?.toLowerCase() || ''
return title.includes('minecraft') && title.length > 0
const wordsInTitle = title.split(' ').filter((word) => word.length > 0)
return title.includes('minecraft') && title.length > 0 && wordsInTitle.length <= 3
},
link: {
path: 'settings',