Fix: Add missing MNBL i18n keys and show effects tab always

- Added MNBL.details and MNBL.description to lang/fr.json
- Removed conditional display of effects tab in partial-item-nav.hbs
- Effects tab now always visible in item sheets
- Added MNBL i18n keys verification to test script

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-07 00:53:31 +02:00
parent f035bcfae2
commit 38525c3257
3 changed files with 37 additions and 8 deletions
+32 -3
View File
@@ -222,8 +222,36 @@ if (missingKeys.length === 0) {
console.log(` ❌ Clés EFFECT manquantes : ${missingKeys.join(', ')}`);
}
// 9. Vérification de l'utilisation du helper subtract
console.log('\n9. Vérification de l\'utilisation du helper subtract :');
// 9. Vérification des clés i18n MNBL dans lang/fr.json
console.log('\n9. Vérification des clés i18n MNBL :');
const mnblKeys = Object.keys(frJson.MNBL || {});
const requiredMnblKeys = [
'all', 'allegiance', 'balance', 'beastslords', 'chaos',
'difficulty', 'duration', 'details', 'description',
'elementslords', 'equipment', 'examples', 'exercisedskills',
'highlanguage', 'initiateTalents', 'law', 'mode', 'mainattribute',
'none', 'aguerriTalents', 'prerequisitesAguerri', 'prerequisitesMaitre',
'prerequisites', 'maitreTalents', 'pronounced', 'pronouncedrune',
'pronouncerune', 'rune', 'soulcost', 'soulpoints', 'traced',
'tracedrune', 'tracerune'
];
let missingMnblKeys = [];
for (const key of requiredMnblKeys) {
if (!mnblKeys.includes(key)) {
missingMnblKeys.push(key);
}
}
if (missingMnblKeys.length === 0) {
console.log(` ✅ Toutes les clés MNBL sont présentes (${mnblKeys.length} clés)`);
} else {
console.log(` ❌ Clés MNBL manquantes : ${missingMnblKeys.join(', ')}`);
}
// 10. Vérification de l'utilisation du helper subtract
console.log('\n10. Vérification de l\'utilisation du helper subtract :');
const subtractPattern = /subtract/g;
const subtractFiles = [
'templates/partial-active-effects.hbs',
@@ -273,9 +301,10 @@ console.log(`API dépréciée utilisée: ${deprecatedFound ? 'Oui' : 'Non'}`);
console.log(`Référence à effect.webp: ${effectWebpFound ? 'Oui' : 'Non'}`);
console.log(`Utilisation de duration.type: ${durationTypeFound ? 'Oui' : 'Non'}`);
console.log(`Clés i18n EFFECT: ${missingKeys.length === 0 ? 'Complet' : 'Manquantes'}`);
console.log(`Clés i18n MNBL: ${missingMnblKeys.length === 0 ? 'Complet' : 'Manquantes'}`);
console.log(`Helper subtract: ${(subtractUsed && subtractRegistered) ? 'OK' : (subtractUsed ? 'Manquant' : 'Non utilisé')}`);
if (errors.length === 0 && missingPartials.length === 0 && !deprecatedFound && !effectWebpFound && !durationTypeFound && missingKeys.length === 0 && (subtractUsed ? subtractRegistered : true)) {
if (errors.length === 0 && missingPartials.length === 0 && !deprecatedFound && !effectWebpFound && !durationTypeFound && missingKeys.length === 0 && missingMnblKeys.length === 0 && (subtractUsed ? subtractRegistered : true)) {
console.log('\n✅ Toutes les vérifications ont réussi !');
process.exit(0);
} else {