i18ntk 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -1
- package/README.md +410 -20
- package/locales/de/common.json +17 -20
- package/locales/en/common.json +17 -20
- package/locales/es/common.json +17 -20
- package/locales/fr/common.json +17 -20
- package/locales/ru/common.json +17 -20
- package/main/i18ntk-manage.js +52 -24
- package/package.json +6 -8
- package/{dev → scripts}/debug/README.md +9 -5
- package/{dev → scripts}/debug/debugger.js +84 -4
- package/scripts/prepublish.js +2 -2
- package/scripts/validate-all-translations.js +2 -2
- package/ui-locales/de/debug.json +5 -5
- package/ui-locales/de/init.json +1 -0
- package/ui-locales/de/language.json +11 -2
- package/ui-locales/de/security.json +2 -1
- package/ui-locales/de/sizing.json +1 -0
- package/ui-locales/de/usage.json +1 -0
- package/ui-locales/en/debug.json +5 -5
- package/ui-locales/en/init.json +1 -0
- package/ui-locales/en/language.json +11 -2
- package/ui-locales/en/security.json +2 -1
- package/ui-locales/en/sizing.json +2 -0
- package/ui-locales/en/usage.json +1 -0
- package/ui-locales/es/debug.json +5 -5
- package/ui-locales/es/init.json +1 -0
- package/ui-locales/es/language.json +11 -2
- package/ui-locales/es/security.json +2 -1
- package/ui-locales/es/sizing.json +2 -0
- package/ui-locales/es/usage.json +1 -0
- package/ui-locales/fr/debug.json +5 -5
- package/ui-locales/fr/init.json +1 -0
- package/ui-locales/fr/language.json +11 -2
- package/ui-locales/fr/security.json +2 -1
- package/ui-locales/fr/sizing.json +2 -0
- package/ui-locales/fr/usage.json +1 -0
- package/ui-locales/ja/debug.json +5 -5
- package/ui-locales/ja/init.json +1 -0
- package/ui-locales/ja/language.json +11 -2
- package/ui-locales/ja/security.json +2 -1
- package/ui-locales/ja/sizing.json +3 -0
- package/ui-locales/ja/usage.json +1 -0
- package/ui-locales/pt/debug.json +5 -5
- package/ui-locales/pt/init.json +1 -0
- package/ui-locales/pt/language.json +11 -2
- package/ui-locales/pt/security.json +2 -1
- package/ui-locales/pt/sizing.json +2 -0
- package/ui-locales/pt/usage.json +1 -0
- package/ui-locales/ru/debug.json +5 -5
- package/ui-locales/ru/init.json +1 -0
- package/ui-locales/ru/language.json +11 -2
- package/ui-locales/ru/security.json +2 -1
- package/ui-locales/ru/sizing.json +2 -0
- package/ui-locales/ru/usage.json +1 -0
- package/ui-locales/zh/debug.json +5 -5
- package/ui-locales/zh/init.json +1 -0
- package/ui-locales/zh/language.json +11 -2
- package/ui-locales/zh/security.json +2 -1
- package/ui-locales/zh/sizing.json +2 -0
- package/ui-locales/zh/usage.json +1 -0
- package/utils/test-complete-system.js +1 -1
- package/dev/README.md +0 -37
- package/docs/INSTALLATION.md +0 -98
- package/docs/PIN_PROTECTION_GUIDE.md +0 -265
- package/docs/README.md +0 -111
- package/docs/SCRIPT_DIRECTORY_GUIDE.md +0 -278
- package/docs/TODO_ROADMAP.md +0 -279
- package/docs/TRANSLATION_STATUS.md +0 -67
- package/docs/api/API_REFERENCE.md +0 -258
- package/docs/api/COMPONENTS.md +0 -492
- package/docs/api/CONFIGURATION.md +0 -676
- package/docs/api/NPM_PUBLISHING_GUIDE.md +0 -426
- package/docs/debug/DEBUG_README.md +0 -30
- package/docs/debug/DEBUG_TOOLS.md +0 -152
- package/docs/development/AGENTS.md +0 -349
- package/docs/development/DEVELOPMENT_RULES.md +0 -165
- package/docs/development/DEV_README.md +0 -41
- package/docs/release-notes/RELEASE_NOTES_v1.0.0.md +0 -175
- package/docs/release-notes/RELEASE_NOTES_v1.0.4.md +0 -153
- package/docs/release-notes/RELEASE_NOTES_v1.1.2.md +0 -68
- package/docs/release-notes/RELEASE_NOTES_v1.1.5.md +0 -81
- package/docs/release-notes/RELEASE_NOTES_v1.4.0.md +0 -115
- package/docs/release-notes/RELEASE_NOTES_v1.6.0.md +0 -141
- package/docs/release-notes/RELEASE_NOTES_v1.6.1.md +0 -185
- package/docs/release-notes/RELEASE_NOTES_v1.6.3.md +0 -199
- package/docs/release-notes/v1.3.0.md +0 -162
- package/docs/release-notes/v1.3.1.md +0 -136
- package/docs/reports/ANALYSIS_README.md +0 -17
- package/docs/reports/CONSOLE_MISMATCH_BUG_REPORT_v1.5.0.md +0 -181
- package/docs/reports/SIZING_README.md +0 -18
- package/docs/reports/SUMMARY_README.md +0 -18
- package/docs/reports/TRANSLATION_BUG_REPORT_v1.5.0.md +0 -129
- package/docs/reports/USAGE_README.md +0 -18
- package/docs/reports/VALIDATION_README.md +0 -18
- /package/{dev → scripts}/debug/complete-console-translations.js +0 -0
- /package/{dev → scripts}/debug/console-key-checker.js +0 -0
- /package/{dev → scripts}/debug/console-translations.js +0 -0
- /package/{dev → scripts}/debug/debug-security.js +0 -0
- /package/{dev → scripts}/debug/debug-translation.js +0 -0
- /package/{dev → scripts}/debug/export-missing-keys.js +0 -0
- /package/{dev → scripts}/debug/final-normalize.js +0 -0
- /package/{dev → scripts}/debug/find-extra-keys.js +0 -0
- /package/{dev → scripts}/debug/normalize-locales.js +0 -0
- /package/{dev → scripts}/debug/refactor-locales.js +0 -0
- /package/{dev → scripts}/debug/reorder-locales.js +0 -0
- /package/{dev → scripts}/debug/replace-hardcoded-console.js +0 -0
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "Argumento de comando desconocido",
|
|
22
22
|
"logMessage": "[SEGURIDAD {level}] {timestamp}: {event}",
|
|
23
23
|
"alertMessage": "[ALERTA DE SEGURIDAD] {timestamp}: {event}",
|
|
24
|
-
"securityWarning": "[ADVERTENCIA DE SEGURIDAD] {timestamp}: {event}"
|
|
24
|
+
"securityWarning": "[ADVERTENCIA DE SEGURIDAD] {timestamp}: {event}",
|
|
25
|
+
"json_parse_error": "Seguridad: Error de análisis JSON: {errorMessage}"
|
|
25
26
|
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
"source_directory": "Directorio fuente: {{sourceDir}}",
|
|
8
8
|
"found_languages": "Idiomas encontrados: {{languages}}",
|
|
9
9
|
"analyzing_file_sizes": "Analizando tamaños de archivos...",
|
|
10
|
+
"problematic_keys": "Claves problemáticas: {{problematicKeys}}",
|
|
11
|
+
"long_translations": "Traducciones largas: {{longTranslations}}",
|
|
10
12
|
"problematicKeysLabel": "Claves problemáticas: {{problematicKeys}}",
|
|
11
13
|
"analyzing_translation_content": "Analizando contenido de traducción...",
|
|
12
14
|
"generating_size_comparisons": "Generando comparaciones de tamaño...",
|
package/ui-locales/es/usage.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"detectedI18nDirectory": "Directorio i18n detectado: {{i18nDir}}",
|
|
21
21
|
"fileInfo": " 📄 {namespace}: {keys} claves",
|
|
22
22
|
"failedToAnalyzeUsage": "❌ Error al analizar uso: {error}",
|
|
23
|
+
"failedToAnalyzeFile": "❌ Error al analizar archivo: {error}",
|
|
23
24
|
"analyzerInitialized": "Analizador inicializado",
|
|
24
25
|
"analyzerInitFailed": "Fallo la inicialización del analizador: {error}",
|
|
25
26
|
"argsParsed": "Argumentos analizados",
|
package/ui-locales/fr/debug.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"title": "🔧 Outils de débogage",
|
|
3
3
|
"separator": "============================================================",
|
|
4
4
|
"mainDebuggerSystemDiagnostics": "1. Diagnostics système",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"debugLogs": "
|
|
5
|
+
"_consoleTranslationsCheck": "// 2. Vérification des traductions de console",
|
|
6
|
+
"_exportMissingKeys": "// 3. Exporter les clés de traduction manquantes",
|
|
7
|
+
"_replaceHardcodedConsole": "// 4. Remplacer les chaînes codées en console",
|
|
8
|
+
"_consoleKeyChecker": "// 5. Vérificateur de clés de console",
|
|
9
|
+
"debugLogs": "2. Journaux de débogage",
|
|
10
10
|
"backToMainMenu": "0. Retour au menu principal",
|
|
11
11
|
"selectOption": "Sélectionnez un outil de débogage : ",
|
|
12
12
|
"runningDebugTool": "Exécution de {displayName}...",
|
package/ui-locales/fr/init.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"autoDetectedI18nDirectory": "📂 Répertoire i18n détecté automatiquement : {directory}",
|
|
9
9
|
"initializingProject": "⚙️ Initialisation de la configuration du projet...",
|
|
10
10
|
"languageSelectionTitle": "🌐 Configuration des langues",
|
|
11
|
+
"createdSampleTranslationFile": "✅ Fichier de traduction d'exemple créé : {file}",
|
|
11
12
|
"available": "Disponible",
|
|
12
13
|
"defaultLanguages": "📝 Langues par défaut : {languages}",
|
|
13
14
|
"enterLanguageCodes": "🎯 Entrez les codes de langue cible (séparés par des virgules, ex. de, es, fr, ru) :",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"title": "🌍 Changer la Langue",
|
|
3
|
+
"separator": "============================================================",
|
|
4
|
+
"current": "Langue actuelle : {language}",
|
|
5
|
+
"available": "Langues disponibles :",
|
|
6
|
+
"languageOption": "{index}. {displayName}{current}",
|
|
7
|
+
"backToMainMenu": "Retour au Menu Principal",
|
|
8
|
+
"prompt": "Sélectionnez une langue (0-8) :",
|
|
9
|
+
"cancelled": "Changement de langue annulé.",
|
|
10
|
+
"invalid": "Choix invalide. Veuillez réessayer.",
|
|
11
|
+
"changed": "Langue changée vers : {language}",
|
|
12
|
+
"pressEnterToContinue": "Appuyez sur Entrée pour continuer..."
|
|
4
13
|
}
|
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "Argument de commande inconnu",
|
|
22
22
|
"logMessage": "[SÉCURITÉ {level}] {timestamp} : {event}",
|
|
23
23
|
"alertMessage": "[ALERTE SÉCURITÉ] {timestamp} : {event}",
|
|
24
|
-
"securityWarning": "[AVERTISSEMENT SÉCURITÉ] {timestamp} : {event}"
|
|
24
|
+
"securityWarning": "[AVERTISSEMENT SÉCURITÉ] {timestamp} : {event}",
|
|
25
|
+
"json_parse_error": "Sécurité : Erreur d'analyse JSON : {errorMessage}"
|
|
25
26
|
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
"source_directory": "Répertoire source : {{sourceDir}}",
|
|
8
8
|
"found_languages": "Langues trouvées : {{languages}}",
|
|
9
9
|
"sourceDirectoryLabel": "📁 Répertoire source : {{sourceDir}}",
|
|
10
|
+
"problematic_keys": "Clés problématiques : {{problematicKeys}}",
|
|
11
|
+
"long_translations": "Traductions longues : {{longTranslations}}",
|
|
10
12
|
"problematicKeysLabel": "Clés problématiques : {{problematicKeys}}",
|
|
11
13
|
"sourceLanguageLabel": "🌍 Langue source : {{sourceLanguage}}",
|
|
12
14
|
"strictModeLabel": "⚙️ Mode strict : {{mode}}",
|
package/ui-locales/fr/usage.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"detectedI18nDirectory": "Répertoire i18n détecté : {{i18nDir}}",
|
|
20
20
|
"fileInfo": " 📄 {namespace}: {keys} clés",
|
|
21
21
|
"failedToAnalyzeUsage": "❌ Échec de l'analyse d'utilisation : {error}",
|
|
22
|
+
"failedToAnalyzeFile": "❌ Échec de l'analyse de fichier : {error}",
|
|
22
23
|
"analyzerInitialized": "Analyseur initialisé",
|
|
23
24
|
"analyzerInitFailed": "Échec de l'initialisation de l'analyseur : {error}",
|
|
24
25
|
"argsParsed": "Arguments analysés",
|
package/ui-locales/ja/debug.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"title": "🔧 デバッグツール",
|
|
3
3
|
"separator": "============================================================",
|
|
4
4
|
"mainDebuggerSystemDiagnostics": "1. システム診断",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"debugLogs": "
|
|
5
|
+
"_consoleTranslationsCheck": "// 2. コンソール翻訳チェック",
|
|
6
|
+
"_exportMissingKeys": "// 3. 不足している翻訳キーのエクスポート",
|
|
7
|
+
"_replaceHardcodedConsole": "// 4. ハードコードされたコンソール文字列の置換",
|
|
8
|
+
"_consoleKeyChecker": "// 5. コンソールキーチェッカー",
|
|
9
|
+
"debugLogs": "2. デバッグログ",
|
|
10
10
|
"backToMainMenu": "0. メインメニューに戻る",
|
|
11
11
|
"selectOption": "デバッグツールを選択:",
|
|
12
12
|
"runningDebugTool": "{displayName}を実行中...",
|
package/ui-locales/ja/init.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"useExistingDirectoryPrompt": "既存のディレクトリを使用しますか? (y/n)",
|
|
8
8
|
"autoDetectedI18nDirectory": "📂 自動検出された i18n ディレクトリ:{directory}",
|
|
9
9
|
"initializingProject": "⚙️ プロジェクト構成を初期化中...",
|
|
10
|
+
"createdSampleTranslationFile": "✅ サンプル翻訳ファイルを作成しました:{file}",
|
|
10
11
|
"languageSelectionTitle": "🌐 言語設定",
|
|
11
12
|
"available": "利用可能",
|
|
12
13
|
"defaultLanguages": "📝 デフォルトの言語:{languages}",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"title": "🌍 言語を変更",
|
|
3
|
+
"separator": "============================================================",
|
|
4
|
+
"current": "現在の言語: {language}",
|
|
5
|
+
"available": "利用可能な言語:",
|
|
6
|
+
"languageOption": "{index}. {displayName}{current}",
|
|
7
|
+
"backToMainMenu": "メインメニューに戻る",
|
|
8
|
+
"prompt": "言語を選択してください (0-8):",
|
|
9
|
+
"cancelled": "言語の変更がキャンセルされました。",
|
|
10
|
+
"invalid": "無効な選択です。もう一度お試しください。",
|
|
11
|
+
"changed": "言語が変更されました: {language}",
|
|
12
|
+
"pressEnterToContinue": "Enter キーを押して続行..."
|
|
4
13
|
}
|
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "不明なコマンド引数",
|
|
22
22
|
"logMessage": "[セキュリティ {level}] {timestamp}: {event}",
|
|
23
23
|
"alertMessage": "[セキュリティ警報] {timestamp}: {event}",
|
|
24
|
-
"securityWarning": "[セキュリティ警告] {timestamp}: {event}"
|
|
24
|
+
"securityWarning": "[セキュリティ警告] {timestamp}: {event}",
|
|
25
|
+
"json_parse_error": "セキュリティ: JSON 解析エラー: {errorMessage}"
|
|
25
26
|
}
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"found_languages": "検出された言語: {{languages}}",
|
|
9
9
|
"analyzing_file_sizes": "ファイルサイズを分析中...",
|
|
10
10
|
"analyzing_translation_content": "翻訳内容を分析中...",
|
|
11
|
+
"problematic_keys": "問題のあるキー: {{problematicKeys}}",
|
|
12
|
+
"problematicKeysLabel": "問題のあるキー: {{problematicKeys}}",
|
|
13
|
+
"long_translations": "長い翻訳: {{longTranslations}}",
|
|
11
14
|
"generating_size_comparisons": "サイズ比較を生成中...",
|
|
12
15
|
"sourceDirectoryLabel": "📁 ソースディレクトリ: {{sourceDir}}",
|
|
13
16
|
"sourceLanguageLabel": "🌍 ソース言語: {{sourceLanguage}}",
|
package/ui-locales/ja/usage.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"detectedI18nDirectory": "検出された I18n ディレクトリ: {{i18nDir}}",
|
|
21
21
|
"fileInfo": " 📄 {namespace}: {keys} 件のキー",
|
|
22
22
|
"failedToAnalyzeUsage": "❌ 使用状況の解析に失敗しました: {error}",
|
|
23
|
+
"failedToAnalyzeFile": "❌ ファイルの解析に失敗しました: {error}",
|
|
23
24
|
"analyzerInitialized": "アナライザが初期化されました",
|
|
24
25
|
"analyzerInitFailed": "アナライザの初期化に失敗しました: {error}",
|
|
25
26
|
"argsParsed": "引数を解析しました",
|
package/ui-locales/pt/debug.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"title": "🔧 Ferramentas de Depuração",
|
|
3
3
|
"separator": "============================================================",
|
|
4
4
|
"mainDebuggerSystemDiagnostics": "1. Diagnóstico do Sistema",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"debugLogs": "
|
|
5
|
+
"_consoleTranslationsCheck": "// 2. Verificação de Traduções do Console",
|
|
6
|
+
"_exportMissingKeys": "// 3. Exportar Chaves de Tradução Ausentes",
|
|
7
|
+
"_replaceHardcodedConsole": "// 4. Substituir Strings de Console Codificadas",
|
|
8
|
+
"_consoleKeyChecker": "// 5. Verificador de Chaves do Console",
|
|
9
|
+
"debugLogs": "2. Logs de Depuração",
|
|
10
10
|
"backToMainMenu": "0. Voltar ao Menu Principal",
|
|
11
11
|
"selectOption": "Selecione uma ferramenta de depuração: ",
|
|
12
12
|
"runningDebugTool": "Executando {displayName}...",
|
package/ui-locales/pt/init.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"detectedI18nFrameworks": "🔍 Framework(s) i18n detectado(s): {frameworks}",
|
|
6
6
|
"existingDirectoriesFound": "📁 Diretórios de tradução existentes encontrados:",
|
|
7
7
|
"useExistingDirectoryPrompt": "Deseja usar o diretório existente? (s/n)",
|
|
8
|
+
"createdSampleTranslationFile": "✅ Arquivo de tradução de exemplo criado: {file}",
|
|
8
9
|
"autoDetectedI18nDirectory": "📂 Diretório i18n detectado automaticamente: {directory}",
|
|
9
10
|
"initializingProject": "⚙️ Inicializando configuração do projeto...",
|
|
10
11
|
"languageSelectionTitle": "🌐 Configuração de Idioma",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"title": "🌍 Alterar Idioma",
|
|
3
|
+
"separator": "============================================================",
|
|
4
|
+
"current": "Idioma atual: {language}",
|
|
5
|
+
"available": "Idiomas disponíveis:",
|
|
6
|
+
"languageOption": "{index}. {displayName}{current}",
|
|
7
|
+
"backToMainMenu": "Voltar ao Menu Principal",
|
|
8
|
+
"prompt": "Selecione um idioma (0-8):",
|
|
9
|
+
"cancelled": "Mudança de idioma cancelada.",
|
|
10
|
+
"invalid": "Escolha inválida. Por favor, tente novamente.",
|
|
11
|
+
"changed": "Idioma alterado para: {language}",
|
|
12
|
+
"pressEnterToContinue": "Pressione Enter para continuar..."
|
|
4
13
|
}
|
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "Argumento de comando desconhecido",
|
|
22
22
|
"logMessage": "[SEGURANÇA {level}] {timestamp}: {event}",
|
|
23
23
|
"alertMessage": "[ALERTA DE SEGURANÇA] {timestamp}: {event}",
|
|
24
|
-
"securityWarning": "[AVISO DE SEGURANÇA] {timestamp}: {event}"
|
|
24
|
+
"securityWarning": "[AVISO DE SEGURANÇA] {timestamp}: {event}",
|
|
25
|
+
"json_parse_error": "Segurança: Erro ao analisar JSON: {errorMessage}"
|
|
25
26
|
}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"invalidReportFileError": "Caminho do arquivo de relatório inválido",
|
|
12
12
|
"failedToSaveReportError": "Falha ao salvar relatório com segurança",
|
|
13
13
|
"invalidCsvFileError": "Caminho do arquivo CSV inválido",
|
|
14
|
+
"problematic_keys": "Chaves problemáticas: {{problematicKeys}}",
|
|
15
|
+
"long_translations": "Traduções longas: {{longTranslations}}",
|
|
14
16
|
"problematicKeysLabel": "Chaves problemáticas: {{problematicKeys}}",
|
|
15
17
|
"failedToSaveCsvError": "Falha ao salvar relatório CSV com segurança",
|
|
16
18
|
"fatalError": "❌ Análise de dimensionamento falhou: {{error}}",
|
package/ui-locales/pt/usage.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"detectedI18nDirectory": "Diretório i18n detectado: {{i18nDir}}",
|
|
21
21
|
"fileInfo": " 📄 {namespace}: {keys} chaves",
|
|
22
22
|
"failedToAnalyzeUsage": "❌ Falha ao analisar uso: {error}",
|
|
23
|
+
"failedToAnalyzeFile": "❌ Falha ao analisar arquivo: {error}",
|
|
23
24
|
"analyzerInitialized": "Analisador inicializado",
|
|
24
25
|
"analyzerInitFailed": "Falha na inicialização do analisador: {error}",
|
|
25
26
|
"argsParsed": "Argumentos analisados",
|
package/ui-locales/ru/debug.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"title": "🔧 Инструменты отладки",
|
|
3
3
|
"separator": "============================================================",
|
|
4
4
|
"mainDebuggerSystemDiagnostics": "1. Диагностика системы",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"debugLogs": "
|
|
5
|
+
"_consoleTranslationsCheck": "// 2. Проверка консольных переводов",
|
|
6
|
+
"_exportMissingKeys": "// 3. Экспорт отсутствующих ключей перевода",
|
|
7
|
+
"_replaceHardcodedConsole": "// 4. Замена жестко закодированных строк",
|
|
8
|
+
"_consoleKeyChecker": "// 5. Проверка консольных ключей",
|
|
9
|
+
"debugLogs": "2. Журналы отладки",
|
|
10
10
|
"backToMainMenu": "0. Вернуться в главное меню",
|
|
11
11
|
"selectOption": "Выберите инструмент отладки: ",
|
|
12
12
|
"runningDebugTool": "Запуск {displayName}...",
|
package/ui-locales/ru/init.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"autoDetectedI18nDirectory": "📂 Автоматически обнаруженный каталог i18n: {directory}",
|
|
9
9
|
"initializingProject": "⚙️ Инициализация конфигурации проекта...",
|
|
10
10
|
"languageSelectionTitle": "🌐 Конфигурация языков",
|
|
11
|
+
"createdSampleTranslationFile": "✅ Создан пример файла перевода: {file}",
|
|
11
12
|
"available": "Доступно",
|
|
12
13
|
"defaultLanguages": "📝 Языки по умолчанию: {languages}",
|
|
13
14
|
"enterLanguageCodes": "🎯 Введите коды целевых языков (через запятую, например: de, es, fr, ru):",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"title": "🌍 Изменить язык",
|
|
3
|
+
"separator": "============================================================",
|
|
4
|
+
"current": "Текущий язык: {language}",
|
|
5
|
+
"available": "Доступные языки:",
|
|
6
|
+
"languageOption": "{index}. {displayName}{current}",
|
|
7
|
+
"backToMainMenu": "Вернуться в главное меню",
|
|
8
|
+
"prompt": "Выберите язык (0-8):",
|
|
9
|
+
"cancelled": "Изменение языка отменено.",
|
|
10
|
+
"invalid": "Неверный выбор. Пожалуйста, попробуйте снова.",
|
|
11
|
+
"changed": "Язык изменен на: {language}",
|
|
12
|
+
"pressEnterToContinue": "Нажмите Enter для продолжения..."
|
|
4
13
|
}
|
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "Неизвестный аргумент команды",
|
|
22
22
|
"logMessage": "[БЕЗОПАСНОСТЬ {level}] {timestamp}: {event}",
|
|
23
23
|
"alertMessage": "[БЕЗОПАСНОСТЬ ТРЕВОГА] {timestamp}: {event}",
|
|
24
|
-
"securityWarning": "[БЕЗОПАСНОСТЬ ПРЕДУПРЕЖДЕНИЕ] {timestamp}: {event}"
|
|
24
|
+
"securityWarning": "[БЕЗОПАСНОСТЬ ПРЕДУПРЕЖДЕНИЕ] {timestamp}: {event}",
|
|
25
|
+
"json_parse_error": "Безопасность: Ошибка разбора JSON: {errorMessage}"
|
|
25
26
|
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"invalidOutputDirectoryError": "Неверный путь к выходной директории: {{outputDir}}",
|
|
11
11
|
"invalidReportFileError": "Неверный путь к файлу отчета",
|
|
12
12
|
"problematicKeysLabel": "Проблемные ключи: {{problematicKeys}}",
|
|
13
|
+
"problematic_keys": "Проблемные ключи: {{problematicKeys}}",
|
|
14
|
+
"long_translations": "Длинные переводы: {{longTranslations}}",
|
|
13
15
|
"failedToSaveReportError": "Не удалось безопасно сохранить отчет",
|
|
14
16
|
"invalidCsvFileError": "Неверный путь к CSV файлу",
|
|
15
17
|
"failedToSaveCsvError": "Не удалось безопасно сохранить CSV отчет",
|
package/ui-locales/ru/usage.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"detectedI18nDirectory": "Обнаружена директория i18n: {{i18nDir}}",
|
|
21
21
|
"fileInfo": " 📄 {namespace}: {keys} ключей",
|
|
22
22
|
"failedToAnalyzeUsage": "❌ Не удалось проанализировать использование: {error}",
|
|
23
|
+
"failedToAnalyzeFile": "❌ Не удалось проанализировать файл: {error}",
|
|
23
24
|
"analyzerInitialized": "Анализатор инициализирован",
|
|
24
25
|
"analyzerInitFailed": "Ошибка инициализации анализатора: {error}",
|
|
25
26
|
"argsParsed": "Аргументы разобраны",
|
package/ui-locales/zh/debug.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"title": "🔧 调试工具",
|
|
3
3
|
"separator": "============================================================",
|
|
4
4
|
"mainDebuggerSystemDiagnostics": "1. 系统诊断",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"debugLogs": "
|
|
5
|
+
"_consoleTranslationsCheck": "// 2. 控制台翻译检查",
|
|
6
|
+
"_exportMissingKeys": "// 3. 导出缺失的翻译键",
|
|
7
|
+
"_replaceHardcodedConsole": "// 4. 替换硬编码的控制台字符串",
|
|
8
|
+
"_consoleKeyChecker": "// 5. 控制台键检查器",
|
|
9
|
+
"debugLogs": "2. 调试日志",
|
|
10
10
|
"backToMainMenu": "0. 返回主菜单",
|
|
11
11
|
"selectOption": "选择调试工具: ",
|
|
12
12
|
"runningDebugTool": "正在运行 {displayName}...",
|
package/ui-locales/zh/init.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"autoDetectedI18nDirectory": "📂 自动检测到i18n目录: {directory}",
|
|
7
7
|
"initializingProject": "⚙️ 正在初始化项目配置...",
|
|
8
8
|
"languageSelectionTitle": "🌐 语言配置",
|
|
9
|
+
"createdSampleTranslationFile": "✅ 已创建示例翻译文件: {file}",
|
|
9
10
|
"available": "可用",
|
|
10
11
|
"defaultLanguages": "📝 默认语言: {languages}",
|
|
11
12
|
"enterLanguageCodes": "🎯 输入目标语言代码(逗号分隔,例如: de, es, fr, ru):",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
2
|
+
"title": "🌍 更改语言",
|
|
3
|
+
"separator": "============================================================",
|
|
4
|
+
"current": "当前语言: {language}",
|
|
5
|
+
"available": "可用语言:",
|
|
6
|
+
"languageOption": "{index}. {displayName}{current}",
|
|
7
|
+
"backToMainMenu": "返回主菜单",
|
|
8
|
+
"prompt": "请选择语言 (0-8):",
|
|
9
|
+
"cancelled": "语言更改已取消。",
|
|
10
|
+
"invalid": "无效选择。请重试。",
|
|
11
|
+
"changed": "语言已更改为: {language}",
|
|
12
|
+
"pressEnterToContinue": "按 Enter 键继续..."
|
|
4
13
|
}
|
|
@@ -21,5 +21,6 @@
|
|
|
21
21
|
"unknownCommandArg": "未知命令参数",
|
|
22
22
|
"logMessage": "[安全{level}] {timestamp}: {event}",
|
|
23
23
|
"alertMessage": "[安全警报] {timestamp}: {event}",
|
|
24
|
-
"securityWarning": "[安全警告] {timestamp}: {event}"
|
|
24
|
+
"securityWarning": "[安全警告] {timestamp}: {event}",
|
|
25
|
+
"json_parse_error": "安全:JSON解析错误:{errorMessage}"
|
|
25
26
|
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"found_languages": "找到语言: {{languages}}",
|
|
9
9
|
"analyzing_file_sizes": "正在分析文件大小...",
|
|
10
10
|
"problematicKeysLabel": "问题键: {{problematicKeys}}",
|
|
11
|
+
"problematic_keys": "问题键: {{problematicKeys}}",
|
|
12
|
+
"long_translations": "长翻译: {{longTranslations}}",
|
|
11
13
|
"analyzing_translation_content": "正在分析翻译内容...",
|
|
12
14
|
"generating_size_comparisons": "正在生成大小比较...",
|
|
13
15
|
"sourceDirectoryLabel": "📁 源目录: {{sourceDir}}",
|
package/ui-locales/zh/usage.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"detectedI18nDirectory": "检测到 I18n 目录: {{i18nDir}}",
|
|
21
21
|
"fileInfo": " 📄 {namespace}: {keys} 个键",
|
|
22
22
|
"failedToAnalyzeUsage": "❌ 使用分析失败: {error}",
|
|
23
|
+
"failedToAnalyzeFile": "❌ 文件分析失败: {error}",
|
|
23
24
|
"analyzerInitialized": "分析器已初始化",
|
|
24
25
|
"analyzerInitFailed": "分析器初始化失败: {error}",
|
|
25
26
|
"argsParsed": "参数已解析",
|
|
@@ -347,7 +347,7 @@ class SystemTester {
|
|
|
347
347
|
};
|
|
348
348
|
|
|
349
349
|
// Ensure the reports directory exists
|
|
350
|
-
const reportsDir = path.join(__dirname, '..', '
|
|
350
|
+
const reportsDir = path.join(__dirname, '..', 'scripts', 'debug', 'reports');
|
|
351
351
|
if (!fs.existsSync(reportsDir)) {
|
|
352
352
|
fs.mkdirSync(reportsDir, { recursive: true });
|
|
353
353
|
}
|
package/dev/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Development Scripts and Tools
|
|
2
|
-
|
|
3
|
-
This folder contains development scripts, test files, and debugging tools to help maintain and improve the i18nTK toolkit.
|
|
4
|
-
|
|
5
|
-
## 📁 Folder Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
dev/
|
|
9
|
-
├── tests/ # Test scripts and test data
|
|
10
|
-
├── debug/ # Debugging tools and utilities
|
|
11
|
-
├── reports/ # Development reports and analysis
|
|
12
|
-
└── scripts/ # Development helper scripts
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## 🧪 Test Scripts
|
|
16
|
-
|
|
17
|
-
- **test-complete-system.js** - Complete system integration tests
|
|
18
|
-
- **test-features.js** - Feature-specific tests
|
|
19
|
-
- **test-console-i18n.js** - Console i18n functionality tests
|
|
20
|
-
|
|
21
|
-
## 🐛 Debug Tools
|
|
22
|
-
|
|
23
|
-
- **debugger.js** - Main debugging utility for identifying issues
|
|
24
|
-
- **debug-config.js** - Configuration debugging helper
|
|
25
|
-
|
|
26
|
-
## 📊 Reports
|
|
27
|
-
|
|
28
|
-
Development reports are organized by type:
|
|
29
|
-
- **analysis/** - Translation analysis reports
|
|
30
|
-
- **validation/** - Validation reports
|
|
31
|
-
- **usage/** - Usage analysis reports
|
|
32
|
-
- **sizing/** - File sizing reports
|
|
33
|
-
- **summary/** - Summary reports
|
|
34
|
-
|
|
35
|
-
## 🔧 Development Rules
|
|
36
|
-
|
|
37
|
-
See `DEVELOPMENT_RULES.md` for coding standards and best practices.
|
package/docs/INSTALLATION.md
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Installation Guide
|
|
2
|
-
|
|
3
|
-
**Version:** 1.4.0 (04/08/2025) - Stable Release with Advanced PIN Protection
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# Install locally (recommended)
|
|
9
|
-
npm install i18ntk --save-dev
|
|
10
|
-
|
|
11
|
-
# Initialize project
|
|
12
|
-
npx i18ntk init
|
|
13
|
-
|
|
14
|
-
# Run analysis
|
|
15
|
-
npx i18ntk analyze
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## System Requirements
|
|
19
|
-
|
|
20
|
-
- **Node.js:** ≥16.0.0
|
|
21
|
-
- **npm:** Latest stable version
|
|
22
|
-
- **Operating System:** Windows, macOS, Linux
|
|
23
|
-
|
|
24
|
-
## Installation Options
|
|
25
|
-
|
|
26
|
-
### Local Installation (Recommended)
|
|
27
|
-
```bash
|
|
28
|
-
npm install i18ntk --save-dev
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Global Installation
|
|
32
|
-
```bash
|
|
33
|
-
npm install -g i18ntk
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Using npx (No Installation)
|
|
37
|
-
```bash
|
|
38
|
-
npx i18ntk <command>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Using Yarn
|
|
42
|
-
```bash
|
|
43
|
-
yarn add -D i18ntk
|
|
44
|
-
# or globally
|
|
45
|
-
yarn global add i18ntk
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Framework Setup
|
|
49
|
-
|
|
50
|
-
### React
|
|
51
|
-
```bash
|
|
52
|
-
npm install i18ntk --save-dev
|
|
53
|
-
npx i18ntk init
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Vue.js
|
|
57
|
-
```bash
|
|
58
|
-
npm install i18ntk --save-dev
|
|
59
|
-
npx i18ntk init
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Angular
|
|
63
|
-
```bash
|
|
64
|
-
npm install i18ntk --save-dev
|
|
65
|
-
npx i18ntk init
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Next.js
|
|
69
|
-
```bash
|
|
70
|
-
npm install i18ntk --save-dev
|
|
71
|
-
npx i18ntk init
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Configuration
|
|
75
|
-
|
|
76
|
-
Create `i18ntk-config.json` in your project root:
|
|
77
|
-
|
|
78
|
-
```json
|
|
79
|
-
{
|
|
80
|
-
"sourceDirectory": "./src",
|
|
81
|
-
"localesDirectory": "./locales",
|
|
82
|
-
"defaultLanguage": "en",
|
|
83
|
-
"supportedLanguages": ["en", "es", "fr", "de", "pt", "ja", "ru", "zh"]
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## Next Steps
|
|
88
|
-
|
|
89
|
-
1. **Initialize:** Run `npx i18ntk init` to set up project structure
|
|
90
|
-
2. **Analyze:** Run `npx i18ntk analyze` to check translation completeness
|
|
91
|
-
3. **Configure:** Adjust settings via `npx i18ntk` → Settings menu
|
|
92
|
-
4. **Automate:** Use `npx i18ntk autorun` for complete workflow
|
|
93
|
-
|
|
94
|
-
## Support
|
|
95
|
-
|
|
96
|
-
- **Issues:** [GitHub Issues](https://github.com/vladnoskv/i18n-management-toolkit-main/issues)
|
|
97
|
-
- **Documentation:** [Complete Guide](README.md)
|
|
98
|
-
- **Examples:** [Framework Examples](examples/)
|