From 635fdb089d91a0277ac57e000c1a72ac0302f37b Mon Sep 17 00:00:00 2001 From: gkucmierz Date: Thu, 19 Feb 2026 05:49:09 +0000 Subject: [PATCH 1/2] Delete update_i18n_guide.cjs --- update_i18n_guide.cjs | 60 ------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 update_i18n_guide.cjs diff --git a/update_i18n_guide.cjs b/update_i18n_guide.cjs deleted file mode 100644 index c9d513c..0000000 --- a/update_i18n_guide.cjs +++ /dev/null @@ -1,60 +0,0 @@ - -const fs = require('fs'); - -const filePath = 'src/composables/useI18n.js'; -let content = fs.readFileSync(filePath, 'utf8'); - -// 1. Add key to all language objects -const lines = content.split('\n'); -const newLines = []; -let insideLang = false; -let currentLang = null; - -for (let i = 0; i < lines.length; i++) { - const line = lines[i]; - - const langStartMatch = line.match(/^\s{2}(['"]?[\w-]+['"]?): \{/); - if (langStartMatch) { - insideLang = true; - currentLang = langStartMatch[1].replace(/['"]/g, ''); - } - - if (insideLang && (line.trim() === '},' || line.trim() === '}')) { - let translation = 'GUIDE'; - if (currentLang === 'pl') translation = 'PRZEWODNIK'; - if (currentLang === 'es') translation = 'GUÍA'; - if (currentLang === 'fr') translation = 'GUIDE'; - if (currentLang === 'de') translation = 'ANLEITUNG'; - if (currentLang === 'it') translation = 'GUIDA'; - if (currentLang === 'pt' || currentLang === 'pt-br') translation = 'GUIA'; - if (currentLang === 'ru') translation = 'РУКОВОДСТВО'; - if (currentLang === 'zh') translation = '指南'; - - // Ensure previous line has comma - if (newLines.length > 0) { - const lastLine = newLines[newLines.length - 1]; - if (!lastLine.trim().endsWith(',') && !lastLine.trim().endsWith('{')) { - newLines[newLines.length - 1] = lastLine + ','; - } - } - - newLines.push(` 'nav.guide': '${translation}'`); - insideLang = false; - currentLang = null; - } - - newLines.push(line); -} - -content = newLines.join('\n'); - -// 2. Add to requiredKeys -// Find "const requiredKeys = [" -// We know it ends with 'nav.newGame' now. -content = content.replace( - "'nav.newGame'", - "'nav.newGame','nav.guide'" -); - -fs.writeFileSync(filePath, content); -console.log('Updated useI18n.js with nav.guide'); From 182658774e7f3328d5f98b666066c6d136dc83c7 Mon Sep 17 00:00:00 2001 From: gkucmierz Date: Thu, 19 Feb 2026 05:50:00 +0000 Subject: [PATCH 2/2] Delete index.html --- index.html | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 119ab6c..0000000 --- a/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - Nonograms Pro - Vue 3 SOLID - - -
- - -