fix: minecraft title clause update
This commit is contained in:
parent
2f1a31a9e4
commit
28c8b59820
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user