natureco-cli 5.59.0 → 5.60.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "5.59.0",
3
+ "version": "5.60.0",
4
4
  "description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
@@ -14,6 +14,8 @@
14
14
  */
15
15
 
16
16
  const chalk = require('chalk');
17
+ const { getLang: _gl } = require('../utils/i18n');
18
+ const L = (tr, en) => (_gl() === 'en' ? en : tr);
17
19
  const fs = require('fs');
18
20
  const path = require('path');
19
21
  const os = require('os');
@@ -30,7 +32,7 @@ function getToken() {
30
32
 
31
33
  async function apiCall(endpoint, options = {}) {
32
34
  const token = getToken();
33
- if (!token) throw new Error('Medium integration token tanımlı değil');
35
+ if (!token) throw new Error(L('Medium integration token tanımlı değil', 'Medium integration token not set'));
34
36
  return new Promise((resolve, reject) => {
35
37
  const url = new URL(endpoint, API_BASE);
36
38
  const req = https.request({
@@ -74,68 +76,68 @@ function parseMarkdown(content) {
74
76
  }
75
77
  body.push(line);
76
78
  }
77
- return { title: title || 'Başlıksız', content: body.join('\n').trim() };
79
+ return { title: title || L('Başlıksız', 'Untitled'), content: body.join('\n').trim() };
78
80
  }
79
81
 
80
82
  async function cmdDraft(args) {
81
83
  const filePath = args[0];
82
84
  if (!filePath) {
83
- console.log(chalk.red('\n Kullanım: natureco medium draft <dosya.md>\n'));
85
+ console.log(chalk.red(L('\n Kullanım: natureco medium draft <dosya.md>\n', '\n Usage: natureco medium draft <file.md>\n')));
84
86
  return;
85
87
  }
86
88
  if (!fs.existsSync(filePath)) {
87
- console.log(chalk.red(`\n Dosya bulunamadı: ${filePath}\n`));
89
+ console.log(chalk.red(`\n ${L('Dosya bulunamadı', 'File not found')}: ${filePath}\n`));
88
90
  return;
89
91
  }
90
92
 
91
93
  const content = fs.readFileSync(filePath, 'utf8');
92
94
  const { title, content: body } = parseMarkdown(content);
93
95
 
94
- console.log(chalk.cyan('\n 📝 Taslak hazırlanıyor...\n'));
95
- console.log(chalk.gray(` Başlık: ${title}`));
96
- console.log(chalk.gray(` Uzunluk: ${body.length} karakter, ${body.split(/\s+/).length} kelime`));
96
+ console.log(chalk.cyan(L('\n 📝 Taslak hazırlanıyor...\n', '\n 📝 Preparing draft...\n')));
97
+ console.log(chalk.gray(` ${L('Başlık', 'Title')}: ${title}`));
98
+ console.log(chalk.gray(` ${L('Uzunluk', 'Length')}: ${body.length} ${L('karakter', 'chars')}, ${body.split(/\s+/).length} ${L('kelime', 'words')}`));
97
99
 
98
100
  const token = getToken();
99
101
  if (!token) {
100
- console.log(chalk.yellow('\n ⚠️ Medium token tanımlı değil.'));
101
- console.log(chalk.gray(' Ayarlamak için: ') + chalk.cyan('natureco config set mediumIntegrationToken <token>'));
102
- console.log(chalk.gray('\n Token almak için: ') + chalk.cyan('https://medium.com/me/settings/tokens'));
102
+ console.log(chalk.yellow(L('\n ⚠️ Medium token tanımlı değil.', '\n ⚠️ Medium token not set.')));
103
+ console.log(chalk.gray(L(' Ayarlamak için: ', ' To set: ')) + chalk.cyan('natureco config set mediumIntegrationToken <token>'));
104
+ console.log(chalk.gray(L('\n Token almak için: ', '\n To get a token: ')) + chalk.cyan('https://medium.com/me/settings/tokens'));
103
105
  console.log('');
104
106
  // Yerel taslak kaydet
105
107
  const draftDir = path.join(os.homedir(), '.natureco', 'medium-drafts');
106
108
  if (!fs.existsSync(draftDir)) fs.mkdirSync(draftDir, { recursive: true });
107
109
  const draftFile = path.join(draftDir, `${Date.now()}-${path.basename(filePath, '.md')}.json`);
108
110
  fs.writeFileSync(draftFile, JSON.stringify({ title, body, source: filePath, createdAt: new Date().toISOString() }, null, 2));
109
- console.log(chalk.green(` ✓ Taslak yerel olarak kaydedildi: ${draftFile}\n`));
111
+ console.log(chalk.green(` ✓ ${L('Taslak yerel olarak kaydedildi', 'Draft saved locally')}: ${draftFile}\n`));
110
112
  return;
111
113
  }
112
114
 
113
115
  try {
114
116
  const user = await apiCall('/me');
115
117
  const userId = user.data?.id;
116
- if (!userId) throw new Error('User ID alınamadı');
118
+ if (!userId) throw new Error(L('User ID alınamadı', 'Could not get User ID'));
117
119
 
118
120
  const result = await apiCall(`/users/${userId}/posts`, {
119
121
  method: 'POST',
120
122
  body: { title, contentFormat: 'markdown', content: body, publishStatus: 'draft' },
121
123
  });
122
- console.log(chalk.green('\n ✓ Medium\'a taslak yüklendi!'));
124
+ console.log(chalk.green(L('\n ✓ Medium\'a taslak yüklendi!', '\n ✓ Draft uploaded to Medium!')));
123
125
  if (result.data?.url) console.log(chalk.cyan(` 🔗 ${result.data.url}\n`));
124
126
  audit.log(audit.ACTIONS.INFO, { source: 'medium', action: 'draft', url: result.data?.url });
125
127
  } catch (e) {
126
- console.log(chalk.yellow(`\n ⚠️ API hatası: ${e.message}`));
127
- console.log(chalk.gray(' Token\'ı kontrol et veya mediumIntegrationToken ayarla.\n'));
128
+ console.log(chalk.yellow(`\n ⚠️ ${L('API hatası', 'API error')}: ${e.message}`));
129
+ console.log(chalk.gray(L(' Token\'ı kontrol et veya mediumIntegrationToken ayarla.\n', ' Check the token or set mediumIntegrationToken.\n')));
128
130
  }
129
131
  }
130
132
 
131
133
  async function cmdPublish(args) {
132
134
  const filePath = args[0];
133
135
  if (!filePath) {
134
- console.log(chalk.red('\n Kullanım: natureco medium publish <dosya.md>\n'));
136
+ console.log(chalk.red(L('\n Kullanım: natureco medium publish <dosya.md>\n', '\n Usage: natureco medium publish <file.md>\n')));
135
137
  return;
136
138
  }
137
139
  if (!fs.existsSync(filePath)) {
138
- console.log(chalk.red(`\n Dosya bulunamadı: ${filePath}\n`));
140
+ console.log(chalk.red(`\n ${L('Dosya bulunamadı', 'File not found')}: ${filePath}\n`));
139
141
  return;
140
142
  }
141
143
 
@@ -144,12 +146,12 @@ async function cmdPublish(args) {
144
146
 
145
147
  const token = getToken();
146
148
  if (!token) {
147
- console.log(chalk.red('\n ❌ Medium token tanımlı değil.\n'));
148
- console.log(chalk.gray(' Yayınlamak için mediumIntegrationToken gerekli.\n'));
149
+ console.log(chalk.red(L('\n ❌ Medium token tanımlı değil.\n', '\n ❌ Medium token not set.\n')));
150
+ console.log(chalk.gray(L(' Yayınlamak için mediumIntegrationToken gerekli.\n', ' mediumIntegrationToken required to publish.\n')));
149
151
  return;
150
152
  }
151
153
 
152
- console.log(chalk.yellow(`\n ⚠️ "${title}" Medium'da YAYINLANACAK.\n`));
154
+ console.log(chalk.yellow(`\n ⚠️ "${title}" ${L("Medium'da YAYINLANACAK.", 'WILL BE PUBLISHED on Medium.')}\n`));
153
155
 
154
156
  try {
155
157
  const user = await apiCall('/me');
@@ -158,22 +160,22 @@ async function cmdPublish(args) {
158
160
  method: 'POST',
159
161
  body: { title, contentFormat: 'markdown', content: body, publishStatus: 'public' },
160
162
  });
161
- console.log(chalk.green('\n ✓ Yayınlandı!'));
163
+ console.log(chalk.green(L('\n ✓ Yayınlandı!', '\n ✓ Published!')));
162
164
  if (result.data?.url) console.log(chalk.cyan(` 🔗 ${result.data.url}\n`));
163
165
  audit.log(audit.ACTIONS.INFO, { source: 'medium', action: 'publish', url: result.data?.url });
164
166
  } catch (e) {
165
- console.log(chalk.red(`\n ❌ Yayınlama başarısız: ${e.message}\n`));
167
+ console.log(chalk.red(`\n ❌ ${L('Yayınlama başarısız', 'Publish failed')}: ${e.message}\n`));
166
168
  }
167
169
  }
168
170
 
169
171
  function cmdList() {
170
172
  const draftDir = path.join(os.homedir(), '.natureco', 'medium-drafts');
171
173
  if (!fs.existsSync(draftDir)) {
172
- console.log(chalk.gray('\n Henüz taslak yok.\n'));
174
+ console.log(chalk.gray(L('\n Henüz taslak yok.\n', '\n No drafts yet.\n')));
173
175
  return;
174
176
  }
175
177
  const files = fs.readdirSync(draftDir).sort().reverse();
176
- console.log(chalk.cyan('\n 📚 Medium Taslakları\n'));
178
+ console.log(chalk.cyan(L('\n 📚 Medium Taslakları\n', '\n 📚 Medium Drafts\n')));
177
179
  for (const f of files) {
178
180
  const filePath = path.join(draftDir, f);
179
181
  try {
@@ -189,18 +191,18 @@ function cmdList() {
189
191
  async function medium(args) {
190
192
  const [action, ...params] = args || [];
191
193
  if (!action || action === 'help') {
192
- console.log(chalk.yellow('\n Kullanım:'));
193
- console.log(chalk.gray(' natureco medium draft <file.md> Taslak oluştur'));
194
- console.log(chalk.gray(' natureco medium publish <file.md> Doğrudan yayınla'));
195
- console.log(chalk.gray(' natureco medium list Taslaklar'));
196
- console.log(chalk.gray('\n Token ayarla: ') + chalk.cyan('natureco config set mediumIntegrationToken <token>'));
194
+ console.log(chalk.yellow(L('\n Kullanım:', '\n Usage:')));
195
+ console.log(chalk.gray(L(' natureco medium draft <file.md> Taslak oluştur', ' natureco medium draft <file.md> Create draft')));
196
+ console.log(chalk.gray(L(' natureco medium publish <file.md> Doğrudan yayınla', ' natureco medium publish <file.md> Publish directly')));
197
+ console.log(chalk.gray(L(' natureco medium list Taslaklar', ' natureco medium list Drafts')));
198
+ console.log(chalk.gray(L('\n Token ayarla: ', '\n Set token: ')) + chalk.cyan('natureco config set mediumIntegrationToken <token>'));
197
199
  console.log('');
198
200
  return;
199
201
  }
200
202
  if (action === 'draft') return cmdDraft(params);
201
203
  if (action === 'publish') return cmdPublish(params);
202
204
  if (action === 'list') return cmdList();
203
- console.log(chalk.red(`\n Bilinmeyen: ${action}\n`));
205
+ console.log(chalk.red(`\n ${L('Bilinmeyen', 'Unknown')}: ${action}\n`));
204
206
  }
205
207
 
206
208
  module.exports = medium;
@@ -2,6 +2,8 @@ const fs = require('fs');
2
2
  const path = require('path');
3
3
  const os = require('os');
4
4
  const chalk = require('chalk');
5
+ const { getLang: _gl } = require('../utils/i18n');
6
+ const L = (tr, en) => (_gl() === 'en' ? en : tr);
5
7
  const { execSync } = require('child_process');
6
8
  const { getConfig, setConfigValue } = require('../utils/config');
7
9
  const { normalizeWindowsPaths } = require('../utils/path-utils');
@@ -42,25 +44,25 @@ async function migrate(options) {
42
44
  return migrateHermes();
43
45
  }
44
46
  if (from !== 'openclaw') {
45
- console.log(chalk.red('\n❌ Desteklenen kaynaklar: openclaw, claude-code, hermes\n'));
46
- console.log(chalk.gray('Kullanım: natureco migrate --from openclaw'));
47
+ console.log(chalk.red(L('\n❌ Desteklenen kaynaklar: openclaw, claude-code, hermes\n', '\n❌ Supported sources: openclaw, claude-code, hermes\n')));
48
+ console.log(chalk.gray(L('Kullanım: natureco migrate --from openclaw', 'Usage: natureco migrate --from openclaw')));
47
49
  console.log(chalk.gray(' natureco migrate --from claude-code'));
48
50
  console.log(chalk.gray(' natureco migrate --from hermes\n'));
49
51
  return;
50
52
  }
51
53
 
52
- console.log(chalk.yellow('\n⏳ OpenClaw → NatureCo migration başlıyor...\n'));
54
+ console.log(chalk.yellow(L('\n⏳ OpenClaw → NatureCo migration başlıyor...\n', '\n⏳ OpenClaw → NatureCo migration starting...\n')));
53
55
 
54
56
  // OpenClaw directory
55
57
  const openclawDir = options.openclawDir || path.join(os.homedir(), '.openclaw');
56
58
 
57
59
  if (!fs.existsSync(openclawDir)) {
58
- console.log(chalk.red(`❌ OpenClaw dizini bulunamadı: ${openclawDir}\n`));
59
- console.log(chalk.gray('--openclaw-dir ile farklı bir dizin belirtin.\n'));
60
+ console.log(chalk.red(`❌ ${L('OpenClaw dizini bulunamadı', 'OpenClaw directory not found')}: ${openclawDir}\n`));
61
+ console.log(chalk.gray(L('--openclaw-dir ile farklı bir dizin belirtin.\n', 'Specify a different directory with --openclaw-dir.\n')));
60
62
  return;
61
63
  }
62
64
 
63
- console.log(chalk.cyan('OpenClaw dizini:'), chalk.white(openclawDir));
65
+ console.log(chalk.cyan(L('OpenClaw dizini:', 'OpenClaw directory:')), chalk.white(openclawDir));
64
66
  console.log('');
65
67
 
66
68
  const report = {
@@ -209,7 +211,7 @@ async function migrate(options) {
209
211
  }
210
212
  } catch (err) {
211
213
  // Skip file if error
212
- console.log(chalk.gray(`⚠️ ${path.basename(file)} okunamadı`));
214
+ console.log(chalk.gray(`⚠️ ${path.basename(file)} ${L('okunamadı', 'could not be read')}`));
213
215
  }
214
216
  }
215
217
 
@@ -314,12 +316,12 @@ async function migrate(options) {
314
316
  fs.writeFileSync(filePath, JSON.stringify(existing, null, 2));
315
317
  } catch (err) {
316
318
  // Skip file if error
317
- console.log(chalk.gray(`⚠️ ${file} güncellenemedi`));
319
+ console.log(chalk.gray(`⚠️ ${file} ${L('güncellenemedi', 'could not be updated')}`));
318
320
  }
319
321
  }
320
322
 
321
323
  if (memoryFiles.length > 0) {
322
- console.log(chalk.green(`✅ Memory ${memoryFiles.length} bot dosyasına da kopyalandı`));
324
+ console.log(chalk.green(`✅ Memory ${memoryFiles.length} ${L('bot dosyasına da kopyalandı', 'files also copied to bots')}`));
323
325
  }
324
326
  } catch (err) {
325
327
  // Silently fail if can't read memory directory
@@ -328,7 +330,7 @@ async function migrate(options) {
328
330
  report.memory = memory;
329
331
  }
330
332
  } catch (err) {
331
- console.log(chalk.gray('⚠️ Memory migration atlandı:', err.message));
333
+ console.log(chalk.gray(L('⚠️ Memory migration atlandı:', '⚠️ Memory migration skipped:'), err.message));
332
334
  }
333
335
 
334
336
  // 1.5. Workspace scripts migration
@@ -394,23 +396,23 @@ async function migrate(options) {
394
396
  for (const envSource of envSources) {
395
397
  if (fs.existsSync(envSource)) {
396
398
  fs.copyFileSync(envSource, envDest);
397
- console.log(chalk.green('✅ .env dosyası kopyalandı'));
399
+ console.log(chalk.green(L('✅ .env dosyası kopyalandı', '✅ .env file copied')));
398
400
  break;
399
401
  }
400
402
  }
401
403
 
402
404
  // Install npm packages
403
- console.log(chalk.yellow('\n📦 Workspace npm paketleri kuruluyor...\n'));
405
+ console.log(chalk.yellow(L('\n📦 Workspace npm paketleri kuruluyor...\n', '\n📦 Installing workspace npm packages...\n')));
404
406
  try {
405
407
  execSync('npm install', { cwd: workspaceDir, stdio: 'inherit' });
406
- console.log(chalk.green('\n✅ npm paketleri kuruldu\n'));
408
+ console.log(chalk.green(L('\n✅ npm paketleri kuruldu\n', '\n✅ npm packages installed\n')));
407
409
  } catch (err) {
408
- console.log(chalk.yellow('\n⚠️ npm install başarısız, manuel olarak çalıştırın:\n'));
410
+ console.log(chalk.yellow(L('\n⚠️ npm install başarısız, manuel olarak çalıştırın:\n', '\n⚠️ npm install failed, run manually:\n')));
409
411
  console.log(chalk.cyan(` cd ${workspaceDir} && npm install\n`));
410
412
  }
411
413
  }
412
414
  } catch (err) {
413
- console.log(chalk.gray('⚠️ Workspace scripts migration atlandı:', err.message));
415
+ console.log(chalk.gray(L('⚠️ Workspace scripts migration atlandı:', '⚠️ Workspace scripts migration skipped:'), err.message));
414
416
  }
415
417
 
416
418
  // 2. Cron jobs migration
@@ -493,11 +495,11 @@ async function migrate(options) {
493
495
 
494
496
  // Update report with actual added count
495
497
  if (toAdd.length < naturecoCrons.length) {
496
- console.log(chalk.yellow(`⚠️ ${naturecoCrons.length - toAdd.length} cron zaten mevcut, atlandı`));
498
+ console.log(chalk.yellow(`⚠️ ${naturecoCrons.length - toAdd.length} ${L('cron zaten mevcut, atlandı', 'crons already exist, skipped')}`));
497
499
  }
498
500
  }
499
501
  } catch (err) {
500
- console.log(chalk.gray('⚠️ Cron migration atlandı:', err.message));
502
+ console.log(chalk.gray(L('⚠️ Cron migration atlandı:', '⚠️ Cron migration skipped:'), err.message));
501
503
  }
502
504
 
503
505
  // 3. Telegram allowFrom migration
@@ -514,7 +516,7 @@ async function migrate(options) {
514
516
  }
515
517
  }
516
518
  } catch (err) {
517
- console.log(chalk.gray('⚠️ Telegram allowFrom migration atlandı:', err.message));
519
+ console.log(chalk.gray(L('⚠️ Telegram allowFrom migration atlandı:', '⚠️ Telegram allowFrom migration skipped:'), err.message));
518
520
  }
519
521
 
520
522
  // 4. WhatsApp session migration
@@ -534,7 +536,7 @@ async function migrate(options) {
534
536
  report.whatsapp = true;
535
537
  }
536
538
  } catch (err) {
537
- console.log(chalk.gray('⚠️ WhatsApp session migration atlandı:', err.message));
539
+ console.log(chalk.gray(L('⚠️ WhatsApp session migration atlandı:', '⚠️ WhatsApp session migration skipped:'), err.message));
538
540
  }
539
541
 
540
542
  // 5. Skills migration
@@ -560,16 +562,16 @@ async function migrate(options) {
560
562
  }
561
563
 
562
564
  if (report.skills > 0) {
563
- console.log(chalk.green(`✅ Skills: ${report.skills} skill migrate edildi`));
564
- console.log(chalk.gray(` Konum: ~/.natureco/skills/`));
565
+ console.log(chalk.green(`✅ Skills: ${report.skills} ${L('skill migrate edildi', 'skills migrated')}`));
566
+ console.log(chalk.gray(L(' Konum: ~/.natureco/skills/', ' Location: ~/.natureco/skills/')));
565
567
  }
566
568
  }
567
569
  } catch (err) {
568
- console.log(chalk.gray('⚠️ Skills migration atlandı:', err.message));
570
+ console.log(chalk.gray(L('⚠️ Skills migration atlandı:', '⚠️ Skills migration skipped:'), err.message));
569
571
  }
570
572
 
571
573
  // Print migration report
572
- console.log(chalk.green('\n✅ Migration tamamlandı!\n'));
574
+ console.log(chalk.green(L('\n✅ Migration tamamlandı!\n', '\n✅ Migration complete!\n')));
573
575
 
574
576
  if (report.memory) {
575
577
  // Extract string facts for display (handle both string and object formats)
@@ -583,26 +585,26 @@ async function migrate(options) {
583
585
  }
584
586
 
585
587
  if (report.scripts > 0) {
586
- console.log(chalk.green('✅ Scripts:'), chalk.white(`${report.scripts} script kopyalandı ve path'ler güncellendi`));
588
+ console.log(chalk.green('✅ Scripts:'), chalk.white(`${report.scripts} ${L("script kopyalandı ve path'ler güncellendi", 'scripts copied and paths updated')}`));
587
589
  }
588
590
 
589
591
  if (report.crons.total > 0) {
590
- console.log(chalk.green('✅ Cron jobs:'), chalk.white(`${report.crons.total} job bulundu (${report.crons.active} aktif migrate edildi, ${report.crons.inactive} pasif atlandı)`));
592
+ console.log(chalk.green('✅ Cron jobs:'), chalk.white(`${report.crons.total} ${L('job bulundu', 'jobs found')} (${report.crons.active} ${L('aktif migrate edildi', 'active migrated')}, ${report.crons.inactive} ${L('pasif atlandı', 'inactive skipped')})`));
591
593
  }
592
594
 
593
595
  if (report.telegram && report.telegram.length > 0) {
594
596
  console.log(chalk.green('✅ Telegram allowFrom:'), chalk.white(report.telegram.join(', ')));
595
597
  } else if (report.telegram !== null) {
596
- console.log(chalk.gray('⚠️ Telegram allowFrom: Bulunamadı'));
598
+ console.log(chalk.gray(L('⚠️ Telegram allowFrom: Bulunamadı', '⚠️ Telegram allowFrom: Not found')));
597
599
  }
598
600
 
599
601
  if (report.whatsapp) {
600
- console.log(chalk.green('✅ WhatsApp session kopyalandı'));
602
+ console.log(chalk.green(L('✅ WhatsApp session kopyalandı', '✅ WhatsApp session copied')));
601
603
  }
602
604
 
603
605
  console.log('');
604
- console.log(chalk.yellow('⚠️ Manuel kurulum gerekli:'));
605
- console.log(chalk.gray(' - Provider URL ve API key ayarlayın:'));
606
+ console.log(chalk.yellow(L('⚠️ Manuel kurulum gerekli:', '⚠️ Manual setup required:')));
607
+ console.log(chalk.gray(L(' - Provider URL ve API key ayarlayın:', ' - Set Provider URL and API key:')));
606
608
  console.log(chalk.cyan(' natureco config set providerUrl https://api.groq.com/openai/v1'));
607
609
  console.log(chalk.cyan(' natureco config set providerApiKey gsk_xxx'));
608
610
  console.log(chalk.cyan(' natureco config set providerModel llama-3.3-70b-versatile'));
@@ -633,18 +635,18 @@ function copyDirRecursive(src, dest) {
633
635
 
634
636
  // ── Claude Code Migration ──────────────────────────────────────────────────────
635
637
  async function migrateClaudeCode() {
636
- console.log(chalk.yellow('\n⏳ Claude Code → NatureCo migration başlıyor...\n'));
638
+ console.log(chalk.yellow(L('\n⏳ Claude Code → NatureCo migration başlıyor...\n', '\n⏳ Claude Code → NatureCo migration starting...\n')));
637
639
 
638
640
  const claudeDir = path.join(os.homedir(), '.claude');
639
641
  const claudeSettings = path.join(claudeDir, 'settings.json');
640
642
  const claudeProjects = path.join(os.homedir(), '.claude', 'projects');
641
643
 
642
644
  if (!fs.existsSync(claudeSettings)) {
643
- console.log(chalk.yellow('⚠ Claude Code settings bulunamadı: ~/.claude/settings.json\n'));
645
+ console.log(chalk.yellow(L('⚠ Claude Code settings bulunamadı: ~/.claude/settings.json\n', '⚠ Claude Code settings not found: ~/.claude/settings.json\n')));
644
646
  } else {
645
647
  try {
646
648
  const settings = JSON.parse(fs.readFileSync(claudeSettings, 'utf-8'));
647
- console.log(chalk.gray(' Claude Code ayarları bulundu.\n'));
649
+ console.log(chalk.gray(L(' Claude Code ayarları bulundu.\n', ' Claude Code settings found.\n')));
648
650
 
649
651
  // Migrate allowed tools
650
652
  if (settings.allowList?.length > 0) {
@@ -652,7 +654,7 @@ async function migrateClaudeCode() {
652
654
  if (!config.policies) config.policies = {};
653
655
  config.policies.claudeAllowedTools = settings.allowList;
654
656
  setConfigValue('policies', config.policies);
655
- console.log(chalk.green(` ✅ ${settings.allowList.length} izinli araç migrate edildi`));
657
+ console.log(chalk.green(` ✅ ${settings.allowList.length} ${L('izinli araç migrate edildi', 'allowed tools migrated')}`));
656
658
  }
657
659
 
658
660
  // Migrate permissions
@@ -660,10 +662,10 @@ async function migrateClaudeCode() {
660
662
  const config = getConfig();
661
663
  config.claudePermissions = settings.permissions;
662
664
  setConfigValue('claudePermissions', settings.permissions);
663
- console.log(chalk.green(' ✅ Claude izinleri migrate edildi'));
665
+ console.log(chalk.green(L(' ✅ Claude izinleri migrate edildi', ' ✅ Claude permissions migrated')));
664
666
  }
665
667
  } catch (err) {
666
- console.log(chalk.red(` ❌ Claude settings okuma hatası: ${err.message}`));
668
+ console.log(chalk.red(` ❌ ${L('Claude settings okuma hatası', 'Claude settings read error')}: ${err.message}`));
667
669
  }
668
670
  }
669
671
 
@@ -676,7 +678,7 @@ async function migrateClaudeCode() {
676
678
  });
677
679
 
678
680
  if (projects.length > 0) {
679
- console.log(chalk.gray(`\n Claude projeleri bulundu: ${projects.length}\n`));
681
+ console.log(chalk.gray(`\n ${L('Claude projeleri bulundu', 'Claude projects found')}: ${projects.length}\n`));
680
682
  const projectsDir = path.join(os.homedir(), '.natureco', 'claude-projects');
681
683
  fs.mkdirSync(projectsDir, { recursive: true });
682
684
 
@@ -685,14 +687,14 @@ async function migrateClaudeCode() {
685
687
  const dst = path.join(projectsDir, project);
686
688
  if (!fs.existsSync(dst)) {
687
689
  fs.cpSync(src, dst, { recursive: true });
688
- console.log(chalk.green(` ✅ Proje kopyalandı: ${project}`));
690
+ console.log(chalk.green(` ✅ ${L('Proje kopyalandı', 'Project copied')}: ${project}`));
689
691
  } else {
690
- console.log(chalk.yellow(` ⚠ Proje zaten var, atlandı: ${project}`));
692
+ console.log(chalk.yellow(` ⚠ ${L('Proje zaten var, atlandı', 'Project already exists, skipped')}: ${project}`));
691
693
  }
692
694
  }
693
695
  }
694
696
  } catch (err) {
695
- console.log(chalk.yellow(` ⚠ Proje migrasyonu atlandı: ${err.message}`));
697
+ console.log(chalk.yellow(` ⚠ ${L('Proje migrasyonu atlandı', 'Project migration skipped')}: ${err.message}`));
696
698
  }
697
699
  }
698
700
 
@@ -722,25 +724,25 @@ async function migrateClaudeCode() {
722
724
  const memoryDir = path.join(os.homedir(), '.natureco', 'memory');
723
725
  fs.mkdirSync(memoryDir, { recursive: true });
724
726
  fs.writeFileSync(path.join(memoryDir, 'universal-provider.json'), JSON.stringify(memory, null, 2));
725
- console.log(chalk.green(' ✅ Claude MEMORY.md migrate edildi'));
727
+ console.log(chalk.green(L(' ✅ Claude MEMORY.md migrate edildi', ' ✅ Claude MEMORY.md migrated')));
726
728
  } catch (err) {
727
- console.log(chalk.yellow(` ⚠ Memory migrasyonu atlandı: ${err.message}`));
729
+ console.log(chalk.yellow(` ⚠ ${L('Memory migrasyonu atlandı', 'Memory migration skipped')}: ${err.message}`));
728
730
  }
729
731
  }
730
732
 
731
- console.log(chalk.green('\n✅ Claude Code migration tamamlandı!\n'));
733
+ console.log(chalk.green(L('\n✅ Claude Code migration tamamlandı!\n', '\n✅ Claude Code migration complete!\n')));
732
734
  }
733
735
 
734
736
  // ── Hermes Migration ──────────────────────────────────────────────────────────
735
737
  async function migrateHermes() {
736
- console.log(chalk.yellow('\n⏳ Hermes → NatureCo migration başlıyor...\n'));
738
+ console.log(chalk.yellow(L('\n⏳ Hermes → NatureCo migration başlıyor...\n', '\n⏳ Hermes → NatureCo migration starting...\n')));
737
739
 
738
740
  const hermesDir = path.join(os.homedir(), '.hermes');
739
741
  const hermesConfig = path.join(hermesDir, 'config.json');
740
742
  const hermesSessions = path.join(hermesDir, 'sessions');
741
743
 
742
744
  if (!fs.existsSync(hermesDir)) {
743
- console.log(chalk.yellow('⚠ Hermes dizini bulunamadı: ~/.hermes\n'));
745
+ console.log(chalk.yellow(L('⚠ Hermes dizini bulunamadı: ~/.hermes\n', '⚠ Hermes directory not found: ~/.hermes\n')));
744
746
  return;
745
747
  }
746
748
 
@@ -765,9 +767,9 @@ async function migrateHermes() {
765
767
  if (config.temperature !== undefined) setConfigValue('temperature', ncConfig.temperature);
766
768
 
767
769
  migrated.config = true;
768
- console.log(chalk.green(' ✅ Hermes config migrate edildi'));
770
+ console.log(chalk.green(L(' ✅ Hermes config migrate edildi', ' ✅ Hermes config migrated')));
769
771
  } catch (err) {
770
- console.log(chalk.red(` ❌ Config okuma hatası: ${err.message}`));
772
+ console.log(chalk.red(` ❌ ${L('Config okuma hatası', 'Config read error')}: ${err.message}`));
771
773
  }
772
774
  }
773
775
 
@@ -788,10 +790,10 @@ async function migrateHermes() {
788
790
  }
789
791
 
790
792
  if (migrated.sessions > 0) {
791
- console.log(chalk.green(` ✅ ${migrated.sessions} Hermes oturumu migrate edildi`));
793
+ console.log(chalk.green(` ✅ ${migrated.sessions} ${L('Hermes oturumu migrate edildi', 'Hermes sessions migrated')}`));
792
794
  }
793
795
  } catch (err) {
794
- console.log(chalk.yellow(` ⚠ Session migrasyonu atlandı: ${err.message}`));
796
+ console.log(chalk.yellow(` ⚠ ${L('Session migrasyonu atlandı', 'Session migration skipped')}: ${err.message}`));
795
797
  }
796
798
  }
797
799
 
@@ -820,18 +822,18 @@ async function migrateHermes() {
820
822
 
821
823
  fs.writeFileSync(path.join(ncMemoryDir, 'hermes-migrated.json'), JSON.stringify(ncMem, null, 2));
822
824
  migrated.memory = true;
823
- console.log(chalk.green(' ✅ Hermes hafızası migrate edildi'));
825
+ console.log(chalk.green(L(' ✅ Hermes hafızası migrate edildi', ' ✅ Hermes memory migrated')));
824
826
  } catch (err) {
825
- console.log(chalk.yellow(` ⚠ Memory migrasyonu atlandı: ${err.message}`));
827
+ console.log(chalk.yellow(` ⚠ ${L('Memory migrasyonu atlandı', 'Memory migration skipped')}: ${err.message}`));
826
828
  }
827
829
  }
828
830
 
829
831
  if (!migrated.config && migrated.sessions === 0 && !migrated.memory) {
830
- console.log(chalk.yellow(' ⚠ Hiçbir veri migrate edilemedi.\n'));
832
+ console.log(chalk.yellow(L(' ⚠ Hiçbir veri migrate edilemedi.\n', ' ⚠ No data could be migrated.\n')));
831
833
  return;
832
834
  }
833
835
 
834
- console.log(chalk.green('\n✅ Hermes migration tamamlandı!\n'));
836
+ console.log(chalk.green(L('\n✅ Hermes migration tamamlandı!\n', '\n✅ Hermes migration complete!\n')));
835
837
  }
836
838
 
837
839
  module.exports = migrate;
@@ -12,6 +12,8 @@
12
12
  */
13
13
 
14
14
  const chalk = require('chalk');
15
+ const { getLang: _gl } = require('../utils/i18n');
16
+ const L = (tr, en) => (_gl() === 'en' ? en : tr);
15
17
  const https = require('https');
16
18
  const { URL } = require('url');
17
19
  const audit = require('../utils/audit');
@@ -72,26 +74,26 @@ async function apiCall(path, options = {}) {
72
74
  async function cmdPost(args) {
73
75
  const text = args.join(' ').trim();
74
76
  if (!text) {
75
- console.log(chalk.red('\n Kullanım: natureco naturehub post "<mesaj>"\n'));
77
+ console.log(chalk.red(L('\n Kullanım: natureco naturehub post "<mesaj>"\n', '\n Usage: natureco naturehub post "<message>"\n')));
76
78
  return;
77
79
  }
78
80
 
79
81
  const token = getApiKey();
80
82
  if (!token) {
81
- console.log(chalk.yellow('\n ⚠️ API key tanımlı değil. Önce `natureco login` ile giriş yapın.\n'));
83
+ console.log(chalk.yellow(L('\n ⚠️ API key tanımlı değil. Önce `natureco login` ile giriş yapın.\n', '\n ⚠️ API key not set. Log in first with `natureco login`.\n')));
82
84
  saveLocal(text);
83
85
  return;
84
86
  }
85
87
 
86
88
  const botId = getBotId();
87
89
  if (!botId) {
88
- console.log(chalk.yellow('\n ⚠️ Bot ID tanımlı değil. `natureco naturehub list` ile botlarınızı görün.\n'));
89
- console.log(chalk.gray(' Ayarlamak için: natureco config set naturecoBotId <bot_id>\n'));
90
+ console.log(chalk.yellow(L('\n ⚠️ Bot ID tanımlı değil. `natureco naturehub list` ile botlarınızı görün.\n', '\n ⚠️ Bot ID not set. See your bots with `natureco naturehub list`.\n')));
91
+ console.log(chalk.gray(L(' Ayarlamak için: natureco config set naturecoBotId <bot_id>\n', ' To set: natureco config set naturecoBotId <bot_id>\n')));
90
92
  saveLocal(text);
91
93
  return;
92
94
  }
93
95
 
94
- console.log(chalk.cyan(`\n 📤 Bota mesaj gönderiliyor (${botId})...\n`));
96
+ console.log(chalk.cyan(`\n 📤 ${L('Bota mesaj gönderiliyor', 'Sending message to bot')} (${botId})...\n`));
95
97
  console.log(chalk.gray(` "${text.slice(0, 200)}"\n`));
96
98
 
97
99
  try {
@@ -100,11 +102,11 @@ async function cmdPost(args) {
100
102
  token,
101
103
  body: { message: text, user_id: 'cli' },
102
104
  });
103
- console.log(chalk.green(' ✓ Gönderildi!\n'));
105
+ console.log(chalk.green(L(' ✓ Gönderildi!\n', ' ✓ Sent!\n')));
104
106
  if (result.reply) console.log(chalk.cyan(` 💬 Bot: ${result.reply}\n`));
105
107
  audit.log(audit.ACTIONS.INFO, { source: 'naturehub', action: 'post', botId });
106
108
  } catch (e) {
107
- console.log(chalk.red(` ✗ Hata: ${e.message}\n`));
109
+ console.log(chalk.red(` ✗ ${L('Hata', 'Error')}: ${e.message}\n`));
108
110
  saveLocal(text);
109
111
  }
110
112
  }
@@ -117,23 +119,23 @@ function saveLocal(text) {
117
119
  const dir = path.dirname(file);
118
120
  if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
119
121
  fs.appendFileSync(file, JSON.stringify({ ts: new Date().toISOString(), text }) + '\n');
120
- console.log(chalk.gray(` Kayıt: ${file}\n`));
122
+ console.log(chalk.gray(` ${L('Kayıt', 'Saved')}: ${file}\n`));
121
123
  }
122
124
 
123
125
  async function cmdList() {
124
126
  const token = getApiKey();
125
127
  if (!token) {
126
- console.log(chalk.yellow('\n ⚠️ API key tanımlı değil.\n'));
128
+ console.log(chalk.yellow(L('\n ⚠️ API key tanımlı değil.\n', '\n ⚠️ API key not set.\n')));
127
129
  return;
128
130
  }
129
131
 
130
- console.log(chalk.cyan('\n 🤖 Botlarınız\n'));
132
+ console.log(chalk.cyan(L('\n 🤖 Botlarınız\n', '\n 🤖 Your Bots\n')));
131
133
 
132
134
  try {
133
135
  const result = await apiCall('/bots', { method: 'GET', token });
134
136
  const bots = Array.isArray(result) ? result : (result.bots || result.data || []);
135
137
  if (bots.length === 0) {
136
- console.log(chalk.gray(' Henüz botunuz yok.\n'));
138
+ console.log(chalk.gray(L(' Henüz botunuz yok.\n', ' You have no bots yet.\n')));
137
139
  return;
138
140
  }
139
141
  for (const b of bots) {
@@ -141,22 +143,22 @@ async function cmdList() {
141
143
  if (b.description) console.log(` ${chalk.gray(b.description)}`);
142
144
  console.log('');
143
145
  }
144
- console.log(chalk.gray(' Bot ID ayarlamak için: natureco config set naturecoBotId <id>\n'));
146
+ console.log(chalk.gray(L(' Bot ID ayarlamak için: natureco config set naturecoBotId <id>\n', ' To set Bot ID: natureco config set naturecoBotId <id>\n')));
145
147
  } catch (e) {
146
- console.log(chalk.red(` ✗ Hata: ${e.message}\n`));
148
+ console.log(chalk.red(` ✗ ${L('Hata', 'Error')}: ${e.message}\n`));
147
149
  }
148
150
  }
149
151
 
150
152
  async function cmdInfo(botId) {
151
153
  const token = getApiKey();
152
154
  if (!token) {
153
- console.log(chalk.yellow('\n ⚠️ API key tanımlı değil.\n'));
155
+ console.log(chalk.yellow(L('\n ⚠️ API key tanımlı değil.\n', '\n ⚠️ API key not set.\n')));
154
156
  return;
155
157
  }
156
158
 
157
159
  const id = botId || getBotId();
158
160
  if (!id) {
159
- console.log(chalk.yellow('\n Bot ID gerekli: natureco naturehub info <bot_id>\n'));
161
+ console.log(chalk.yellow(L('\n Bot ID gerekli: natureco naturehub info <bot_id>\n', '\n Bot ID required: natureco naturehub info <bot_id>\n')));
160
162
  return;
161
163
  }
162
164
 
@@ -164,35 +166,35 @@ async function cmdInfo(botId) {
164
166
  try {
165
167
  const result = await apiCall(`/bots/${id}`, { method: 'GET', token });
166
168
  console.log(` ${chalk.bold('ID:')} ${result.id}`);
167
- console.log(` ${chalk.bold('İsim:')} ${result.name || '-'}`);
168
- console.log(` ${chalk.bold('Açıklama:')} ${result.description || '-'}`);
169
- console.log(` ${chalk.bold('Durum:')} ${result.status || 'active'}`);
169
+ console.log(` ${chalk.bold(L('İsim:', 'Name:'))} ${result.name || '-'}`);
170
+ console.log(` ${chalk.bold(L('Açıklama:', 'Description:'))} ${result.description || '-'}`);
171
+ console.log(` ${chalk.bold(L('Durum:', 'Status:'))} ${result.status || 'active'}`);
170
172
  console.log('');
171
173
  } catch (e) {
172
- console.log(chalk.red(` ✗ Hata: ${e.message}\n`));
174
+ console.log(chalk.red(` ✗ ${L('Hata', 'Error')}: ${e.message}\n`));
173
175
  }
174
176
  }
175
177
 
176
178
  async function cmdConfig() {
177
179
  const { getConfig } = require('../utils/config');
178
180
  const cfg = getConfig();
179
- console.log(chalk.cyan('\n ⚙️ NatureCo API Ayarları\n'));
180
- console.log(chalk.gray(' API Key: ') + (cfg.apiKey ? chalk.green('✓ ayarlı') : chalk.yellow('yok')));
181
- console.log(chalk.gray(' Bot ID: ') + (cfg.naturecoBotId ? chalk.green(cfg.naturecoBotId) : chalk.yellow('ayarlanmamış')));
182
- console.log(chalk.gray('\n Giriş: ') + chalk.cyan('natureco login'));
181
+ console.log(chalk.cyan(L('\n ⚙️ NatureCo API Ayarları\n', '\n ⚙️ NatureCo API Settings\n')));
182
+ console.log(chalk.gray(' API Key: ') + (cfg.apiKey ? chalk.green(L('✓ ayarlı', '✓ set')) : chalk.yellow(L('yok', 'none'))));
183
+ console.log(chalk.gray(' Bot ID: ') + (cfg.naturecoBotId ? chalk.green(cfg.naturecoBotId) : chalk.yellow(L('ayarlanmamış', 'not set'))));
184
+ console.log(chalk.gray(L('\n Giriş: ', '\n Login: ')) + chalk.cyan('natureco login'));
183
185
  console.log(chalk.gray(' Bot ID: ') + chalk.cyan('natureco config set naturecoBotId <id>'));
184
- console.log(chalk.gray(' Botlar: ') + chalk.cyan('natureco naturehub list'));
186
+ console.log(chalk.gray(L(' Botlar: ', ' Bots: ')) + chalk.cyan('natureco naturehub list'));
185
187
  console.log('');
186
188
  }
187
189
 
188
190
  async function naturehub(args) {
189
191
  const [action, ...params] = args || [];
190
192
  if (!action || action === 'help') {
191
- console.log(chalk.yellow('\n Kullanım:'));
192
- console.log(chalk.gray(' natureco naturehub post "<mesaj>" Bota mesaj gönder'));
193
- console.log(chalk.gray(' natureco naturehub list Botları listele'));
194
- console.log(chalk.gray(' natureco naturehub info [bot_id] Bot detayı'));
195
- console.log(chalk.gray(' natureco naturehub config Ayarlar'));
193
+ console.log(chalk.yellow(L('\n Kullanım:', '\n Usage:')));
194
+ console.log(chalk.gray(L(' natureco naturehub post "<mesaj>" Bota mesaj gönder', ' natureco naturehub post "<message>" Send message to bot')));
195
+ console.log(chalk.gray(L(' natureco naturehub list Botları listele', ' natureco naturehub list List bots')));
196
+ console.log(chalk.gray(L(' natureco naturehub info [bot_id] Bot detayı', ' natureco naturehub info [bot_id] Bot details')));
197
+ console.log(chalk.gray(L(' natureco naturehub config Ayarlar', ' natureco naturehub config Settings')));
196
198
  console.log('');
197
199
  return;
198
200
  }
@@ -200,7 +202,7 @@ async function naturehub(args) {
200
202
  if (action === 'list') return cmdList();
201
203
  if (action === 'info') return cmdInfo(params[0]);
202
204
  if (action === 'config') return cmdConfig();
203
- console.log(chalk.red(`\n Bilinmeyen action: ${action}\n`));
205
+ console.log(chalk.red(`\n ${L('Bilinmeyen action', 'Unknown action')}: ${action}\n`));
204
206
  }
205
207
 
206
208
  module.exports = naturehub;
@@ -12,6 +12,8 @@
12
12
  */
13
13
 
14
14
  const chalk = require('chalk');
15
+ const { getLang: _gl } = require('../utils/i18n');
16
+ const L = (tr, en) => (_gl() === 'en' ? en : tr);
15
17
  const tui = require('../utils/tui');
16
18
  const https = require('https');
17
19
  const http = require('http');
@@ -111,28 +113,28 @@ function extractMeta(html) {
111
113
  async function cmdAudit(args) {
112
114
  const targetUrl = args[0];
113
115
  if (!targetUrl) {
114
- console.log(tui.C.red('\n Kullanım: natureco seo audit <url>\n'));
116
+ console.log(tui.C.red(L('\n Kullanım: natureco seo audit <url>\n', '\n Usage: natureco seo audit <url>\n')));
115
117
  return;
116
118
  }
117
119
 
118
- console.log('\n' + tui.styled(` 🔍 SEO Denetimi: ${targetUrl}`, { color: tui.PALETTE.primary, bold: true }));
120
+ console.log('\n' + tui.styled(` 🔍 ${L('SEO Denetimi', 'SEO Audit')}: ${targetUrl}`, { color: tui.PALETTE.primary, bold: true }));
119
121
  console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
120
122
 
121
123
  // Spinner göster
122
- const spinner = new tui.Spinner('Sayfa yükleniyor', { style: 'dots' }).start();
124
+ const spinner = new tui.Spinner(L('Sayfa yükleniyor', 'Loading page'), { style: 'dots' }).start();
123
125
  let response;
124
126
  try {
125
127
  response = await fetchUrl(targetUrl);
126
128
  } catch (e) {
127
- spinner.stop(tui.C.red('✗ Hata: ' + e.message));
129
+ spinner.stop(tui.C.red(L('✗ Hata: ', '✗ Error: ') + e.message));
128
130
  console.log('');
129
131
  return;
130
132
  }
131
133
 
132
134
  if (response.statusCode !== 200) {
133
- spinner.stop(tui.C.yellow(`⚠ HTTP ${response.statusCode} yanıtı alındı`));
135
+ spinner.stop(tui.C.yellow(`⚠ HTTP ${response.statusCode} ${L('yanıtı alındı', 'response received')}`));
134
136
  } else {
135
- spinner.stop(tui.C.green('✓ Sayfa yüklendi'));
137
+ spinner.stop(tui.C.green(L('✓ Sayfa yüklendi', '✓ Page loaded')));
136
138
  }
137
139
  console.log('');
138
140
 
@@ -142,80 +144,80 @@ async function cmdAudit(args) {
142
144
 
143
145
  // Title
144
146
  if (!meta.title) {
145
- issues.push({ severity: 'high', msg: 'Title tag eksik' });
147
+ issues.push({ severity: 'high', msg: L('Title tag eksik', 'Title tag missing') });
146
148
  } else if (meta.title.length < 30) {
147
- issues.push({ severity: 'medium', msg: `Title çok kısa (${meta.title.length} karakter, ideal: 50-60)` });
149
+ issues.push({ severity: 'medium', msg: `${L('Title çok kısa', 'Title too short')} (${meta.title.length} ${L('karakter', 'chars')}, ideal: 50-60)` });
148
150
  } else if (meta.title.length > 60) {
149
- issues.push({ severity: 'medium', msg: `Title çok uzun (${meta.title.length} karakter, ideal: 50-60)` });
151
+ issues.push({ severity: 'medium', msg: `${L('Title çok uzun', 'Title too long')} (${meta.title.length} ${L('karakter', 'chars')}, ideal: 50-60)` });
150
152
  } else {
151
- passes.push(`Title (${meta.title.length} karakter)`);
153
+ passes.push(`Title (${meta.title.length} ${L('karakter', 'chars')})`);
152
154
  }
153
155
 
154
156
  // Description
155
157
  if (!meta.description) {
156
- issues.push({ severity: 'high', msg: 'Meta description eksik' });
158
+ issues.push({ severity: 'high', msg: L('Meta description eksik', 'Meta description missing') });
157
159
  } else if (meta.description.length < 120) {
158
- issues.push({ severity: 'low', msg: `Description kısa (${meta.description.length} karakter, ideal: 150-160)` });
160
+ issues.push({ severity: 'low', msg: `${L('Description kısa', 'Description short')} (${meta.description.length} ${L('karakter', 'chars')}, ideal: 150-160)` });
159
161
  } else if (meta.description.length > 160) {
160
- issues.push({ severity: 'low', msg: `Description uzun (${meta.description.length} karakter, ideal: 150-160)` });
162
+ issues.push({ severity: 'low', msg: `${L('Description uzun', 'Description long')} (${meta.description.length} ${L('karakter', 'chars')}, ideal: 150-160)` });
161
163
  } else {
162
- passes.push(`Description (${meta.description.length} karakter)`);
164
+ passes.push(`Description (${meta.description.length} ${L('karakter', 'chars')})`);
163
165
  }
164
166
 
165
167
  // Canonical
166
- if (meta.canonical) passes.push('Canonical URL var');
167
- else issues.push({ severity: 'medium', msg: 'Canonical URL tanımlı değil' });
168
+ if (meta.canonical) passes.push(L('Canonical URL var', 'Canonical URL present'));
169
+ else issues.push({ severity: 'medium', msg: L('Canonical URL tanımlı değil', 'Canonical URL not set') });
168
170
 
169
171
  // OG
170
172
  if (Object.keys(meta.og).length > 0) passes.push(`Open Graph (${Object.keys(meta.og).length} tag)`);
171
- else issues.push({ severity: 'low', msg: 'Open Graph tag yok (sosyal medya paylaşımı için)' });
173
+ else issues.push({ severity: 'low', msg: L('Open Graph tag yok (sosyal medya paylaşımı için)', 'No Open Graph tags (for social sharing)') });
172
174
 
173
175
  // Twitter
174
176
  if (Object.keys(meta.twitter).length > 0) passes.push(`Twitter Card (${Object.keys(meta.twitter).length} tag)`);
175
- else issues.push({ severity: 'low', msg: 'Twitter Card tag yok' });
177
+ else issues.push({ severity: 'low', msg: L('Twitter Card tag yok', 'No Twitter Card tags') });
176
178
 
177
179
  // H1
178
- if (meta.headings.h1.length === 0) issues.push({ severity: 'high', msg: 'H1 tag eksik' });
179
- else if (meta.headings.h1.length > 1) issues.push({ severity: 'medium', msg: `Birden fazla H1 var (${meta.headings.h1.length}, ideal: 1)` });
180
- else passes.push(`H1 var: "${meta.headings.h1[0].slice(0, 50)}"`);
180
+ if (meta.headings.h1.length === 0) issues.push({ severity: 'high', msg: L('H1 tag eksik', 'H1 tag missing') });
181
+ else if (meta.headings.h1.length > 1) issues.push({ severity: 'medium', msg: `${L('Birden fazla H1 var', 'Multiple H1 tags')} (${meta.headings.h1.length}, ideal: 1)` });
182
+ else passes.push(`${L('H1 var', 'H1 present')}: "${meta.headings.h1[0].slice(0, 50)}"`);
181
183
 
182
184
  // Images
183
185
  if (meta.totalImages > 0) {
184
186
  if (meta.imagesWithoutAlt > 0) {
185
- issues.push({ severity: 'medium', msg: `${meta.imagesWithoutAlt}/${meta.totalImages} image alt tag eksik` });
187
+ issues.push({ severity: 'medium', msg: `${meta.imagesWithoutAlt}/${meta.totalImages} ${L('image alt tag eksik', 'images missing alt tags')}` });
186
188
  } else {
187
- passes.push(`Tüm image'larda alt var (${meta.totalImages})`);
189
+ passes.push(`${L("Tüm image'larda alt var", 'All images have alt')} (${meta.totalImages})`);
188
190
  }
189
191
  }
190
192
 
191
193
  // Schema
192
- if (meta.hasSchema) passes.push('Schema.org markup var');
193
- else issues.push({ severity: 'low', msg: 'Schema.org markup yok (rich snippets için)' });
194
+ if (meta.hasSchema) passes.push(L('Schema.org markup var', 'Schema.org markup present'));
195
+ else issues.push({ severity: 'low', msg: L('Schema.org markup yok (rich snippets için)', 'No Schema.org markup (for rich snippets)') });
194
196
 
195
197
  // Content
196
- if (meta.wordCount < 300) issues.push({ severity: 'medium', msg: `İçerik kısa (${meta.wordCount} kelime, ideal: 600+)` });
197
- else passes.push(`İçerik uzunluğu (${meta.wordCount} kelime)`);
198
+ if (meta.wordCount < 300) issues.push({ severity: 'medium', msg: `${L('İçerik kısa', 'Content short')} (${meta.wordCount} ${L('kelime', 'words')}, ideal: 600+)` });
199
+ else passes.push(`${L('İçerik uzunluğu', 'Content length')} (${meta.wordCount} ${L('kelime', 'words')})`);
198
200
 
199
201
  // Sonuçları tablo halinde göster
200
- console.log(tui.styled(' 📊 Sonuçlar', { color: tui.PALETTE.primary, bold: true }));
202
+ console.log(tui.styled(L(' 📊 Sonuçlar', ' 📊 Results'), { color: tui.PALETTE.primary, bold: true }));
201
203
  console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
202
204
 
203
205
  // Geçenler
204
206
  if (passes.length > 0) {
205
- console.log('\n' + tui.styled(' ✅ Geçenler', { color: tui.PALETTE.success, bold: true }));
207
+ console.log('\n' + tui.styled(L(' ✅ Geçenler', ' ✅ Passed'), { color: tui.PALETTE.success, bold: true }));
206
208
  const passRows = passes.map((p, i) => ({
207
209
  icon: tui.styled(' ✓ ', { bg: tui.PALETTE.success, color: '#000', bold: true }),
208
210
  msg: p,
209
211
  }));
210
212
  console.log(tui.table(passRows, [
211
213
  { key: 'icon', label: ' ', minWidth: 5 },
212
- { key: 'msg', label: 'Kontrol', minWidth: 40, render: r => tui.C.text(r.msg) },
214
+ { key: 'msg', label: L('Kontrol', 'Check'), minWidth: 40, render: r => tui.C.text(r.msg) },
213
215
  ], { borderStyle: 'round', zebra: true }));
214
216
  }
215
217
 
216
218
  // İyileştirme alanları
217
219
  if (issues.length > 0) {
218
- console.log('\n' + tui.styled(' ⚠️ İyileştirme Alanları', { color: tui.PALETTE.warning, bold: true }));
220
+ console.log('\n' + tui.styled(L(' ⚠️ İyileştirme Alanları', ' ⚠️ Improvement Areas'), { color: tui.PALETTE.warning, bold: true }));
219
221
  const issueRows = issues.map(i => ({
220
222
  icon: i.severity === 'high' ? tui.styled(' ✗ ', { bg: tui.PALETTE.danger, color: '#000', bold: true })
221
223
  : i.severity === 'medium' ? tui.styled(' ⚠ ', { bg: tui.PALETTE.warning, color: '#000', bold: true })
@@ -224,17 +226,17 @@ async function cmdAudit(args) {
224
226
  }));
225
227
  console.log(tui.table(issueRows, [
226
228
  { key: 'icon', label: ' ', minWidth: 5 },
227
- { key: 'msg', label: 'Sorun', minWidth: 40, render: r => tui.C.text(r.msg) },
229
+ { key: 'msg', label: L('Sorun', 'Issue'), minWidth: 40, render: r => tui.C.text(r.msg) },
228
230
  ], { borderStyle: 'round', zebra: true }));
229
231
  }
230
232
 
231
233
  // Skor (büyük, prominent)
232
234
  const score = Math.max(0, Math.min(100, 100 - (issues.filter(i => i.severity === 'high').length * 15 + issues.filter(i => i.severity === 'medium').length * 7 + issues.filter(i => i.severity === 'low').length * 3)));
233
235
  const scoreColor = score >= 80 ? tui.PALETTE.success : score >= 50 ? tui.PALETTE.warning : tui.PALETTE.danger;
234
- const scoreGrade = score >= 80 ? '🟢 Mükemmel' : score >= 50 ? '🟡 İyi' : '🔴 Geliştirilmeli';
236
+ const scoreGrade = score >= 80 ? L('🟢 Mükemmel', '🟢 Excellent') : score >= 50 ? L('🟡 İyi', '🟡 Good') : L('🔴 Geliştirilmeli', '🔴 Needs work');
235
237
 
236
238
  console.log('\n' + tui.styled(' ╭────────────────────────────────────────────────────╮', { color: tui.PALETTE.border }));
237
- console.log(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted('SEO Skoru:') + ' ' +
239
+ console.log(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted(L('SEO Skoru:', 'SEO Score:')) + ' ' +
238
240
  tui.styled(String(score).padStart(3), { color: scoreColor, bold: true }) + tui.C.muted('/100 ') +
239
241
  tui.styled(scoreGrade, { color: scoreColor }) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
240
242
  console.log(tui.styled(' ╰────────────────────────────────────────────────────╯', { color: tui.PALETTE.border }));
@@ -246,23 +248,23 @@ async function cmdAudit(args) {
246
248
  async function seo(args) {
247
249
  const [action, ...params] = args || [];
248
250
  if (!action || action === 'help') {
249
- console.log(chalk.yellow('\n Kullanım:'));
250
- console.log(chalk.gray(' natureco seo audit <url> Tam SEO denetimi'));
251
- console.log(chalk.gray(' natureco seo meta <url> Meta tag analizi'));
252
- console.log(chalk.gray(' natureco seo speed <url> Hız ipuçları'));
251
+ console.log(chalk.yellow(L('\n Kullanım:', '\n Usage:')));
252
+ console.log(chalk.gray(L(' natureco seo audit <url> Tam SEO denetimi', ' natureco seo audit <url> Full SEO audit')));
253
+ console.log(chalk.gray(L(' natureco seo meta <url> Meta tag analizi', ' natureco seo meta <url> Meta tag analysis')));
254
+ console.log(chalk.gray(L(' natureco seo speed <url> Hız ipuçları', ' natureco seo speed <url> Speed tips')));
253
255
  console.log('');
254
256
  return;
255
257
  }
256
258
  if (action === 'audit') return cmdAudit(params);
257
259
  if (action === 'meta') {
258
- console.log(chalk.gray('\n Meta analizi audit\'in bir parçası olarak geliyor.\n'));
260
+ console.log(chalk.gray(L('\n Meta analizi audit\'in bir parçası olarak geliyor.\n', '\n Meta analysis comes as part of the audit.\n')));
259
261
  return cmdAudit(params);
260
262
  }
261
263
  if (action === 'speed') {
262
- console.log(chalk.gray('\n Hız analizi: PageSpeed Insights API entegrasyonu eklenecek (Phase 7).\n'));
264
+ console.log(chalk.gray(L('\n Hız analizi: PageSpeed Insights API entegrasyonu eklenecek (Phase 7).\n', '\n Speed analysis: PageSpeed Insights API integration coming (Phase 7).\n')));
263
265
  return;
264
266
  }
265
- console.log(chalk.red(`\n Bilinmeyen: ${action}\n`));
267
+ console.log(chalk.red(`\n ${L('Bilinmeyen', 'Unknown')}: ${action}\n`));
266
268
  }
267
269
 
268
270
  module.exports = seo;
@@ -17,6 +17,8 @@
17
17
  */
18
18
 
19
19
  const chalk = require('chalk');
20
+ const { getLang: _gl } = require('../utils/i18n');
21
+ const L = (tr, en) => (_gl() === 'en' ? en : tr);
20
22
  const tui = require('../utils/tui');
21
23
  const fs = require('fs');
22
24
  const path = require('path');
@@ -24,14 +26,14 @@ const os = require('os');
24
26
 
25
27
  const XP_FILE = path.join(os.homedir(), '.natureco', 'xp.json');
26
28
  const LEVELS = [
27
- { level: 1, minXP: 0, title: '🌱 Tohum', color: chalk.green },
28
- { level: 2, minXP: 100, title: '🌿 Filiz', color: chalk.green },
29
- { level: 3, minXP: 300, title: '🍃 Yaprak', color: chalk.cyan },
30
- { level: 4, minXP: 700, title: '🌳 Ağaç', color: chalk.blue },
31
- { level: 5, minXP: 1500, title: '🌲 Orman', color: chalk.yellow },
32
- { level: 6, minXP: 3000, title: '🏔️ Dağ', color: chalk.magenta },
33
- { level: 7, minXP: 6000, title: '⭐ Yıldız', color: chalk.red.bold },
34
- { level: 8, minXP: 12000,title: '🌌 Galaksi', color: chalk.hex('#a78bfa').bold },
29
+ { level: 1, minXP: 0, title: L('🌱 Tohum', '🌱 Seed'), color: chalk.green },
30
+ { level: 2, minXP: 100, title: L('🌿 Filiz', '🌿 Sprout'), color: chalk.green },
31
+ { level: 3, minXP: 300, title: L('🍃 Yaprak', '🍃 Leaf'), color: chalk.cyan },
32
+ { level: 4, minXP: 700, title: L('🌳 Ağaç', '🌳 Tree'), color: chalk.blue },
33
+ { level: 5, minXP: 1500, title: L('🌲 Orman', '🌲 Forest'), color: chalk.yellow },
34
+ { level: 6, minXP: 3000, title: L('🏔️ Dağ', '🏔️ Mountain'), color: chalk.magenta },
35
+ { level: 7, minXP: 6000, title: L('⭐ Yıldız', '⭐ Star'), color: chalk.red.bold },
36
+ { level: 8, minXP: 12000,title: L('🌌 Galaksi', '🌌 Galaxy'), color: chalk.hex('#a78bfa').bold },
35
37
  ];
36
38
 
37
39
  function loadXP() {
@@ -77,16 +79,16 @@ function cmdStatus() {
77
79
  const current = getLevel(data.xp);
78
80
  const next = getNextLevel(data.xp);
79
81
 
80
- console.log('\n' + tui.styled(' ⭐ NatureCo XP Sistemi', { color: tui.PALETTE.accent, bold: true }));
82
+ console.log('\n' + tui.styled(L(' ⭐ NatureCo XP Sistemi', ' ⭐ NatureCo XP System'), { color: tui.PALETTE.accent, bold: true }));
81
83
  console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
82
84
 
83
85
  // Üst metrik kartı
84
86
  const w = 50;
85
87
  const lines = [];
86
88
  lines.push(tui.styled(' ╭' + '─'.repeat(w) + '╮', { color: tui.PALETTE.border }));
87
- lines.push(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted('Kullanıcı ') + tui.styled(data.username.padEnd(20), { color: tui.PALETTE.text, bold: true }) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
89
+ lines.push(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted(L('Kullanıcı ', 'User ')) + tui.styled(data.username.padEnd(20), { color: tui.PALETTE.text, bold: true }) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
88
90
  lines.push(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted('XP ') + tui.styled(data.xp.toLocaleString().padStart(8), { color: tui.PALETTE.primary, bold: true }) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
89
- lines.push(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted('Seviye ') + current.color(`Lv.${current.level} ${current.title}`.padEnd(20)) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
91
+ lines.push(tui.styled(' │', { color: tui.PALETTE.border }) + ' ' + tui.C.muted(L('Seviye ', 'Level ')) + current.color(`Lv.${current.level} ${current.title}`.padEnd(20)) + ' ' + tui.styled('│', { color: tui.PALETTE.border }));
90
92
  lines.push(tui.styled(' ╰' + '─'.repeat(w) + '╯', { color: tui.PALETTE.border }));
91
93
  console.log(lines.join('\n'));
92
94
 
@@ -97,15 +99,15 @@ function cmdStatus() {
97
99
  const bar = tui.progressBar(data.xp - current.minXP, next.minXP - current.minXP, {
98
100
  width: 40, showPercent: true,
99
101
  });
100
- console.log('\n ' + tui.C.muted('Sonraki: ') + next.color(`${next.title}`) + tui.C.muted(` (${needed} XP kaldı)`));
102
+ console.log('\n ' + tui.C.muted(L('Sonraki: ', 'Next: ')) + next.color(`${next.title}`) + tui.C.muted(` (${needed} XP ${L('kaldı', 'left')})`));
101
103
  console.log(' ' + bar);
102
104
  } else {
103
- console.log('\n ' + tui.styled(' 🌟 Maksimum seviye!', { color: tui.PALETTE.success, bold: true }));
105
+ console.log('\n ' + tui.styled(L(' 🌟 Maksimum seviye!', ' 🌟 Max level!'), { color: tui.PALETTE.success, bold: true }));
104
106
  }
105
107
 
106
108
  // Son kazanımlar — TUI tablo
107
109
  if (data.history.length > 0) {
108
- console.log('\n' + tui.styled(' 📜 Son XP Kazanımları', { color: tui.PALETTE.secondary, bold: true }));
110
+ console.log('\n' + tui.styled(L(' 📜 Son XP Kazanımları', ' 📜 Recent XP Gains'), { color: tui.PALETTE.secondary, bold: true }));
109
111
  const rows = data.history.slice(-5).reverse().map(h => ({
110
112
  amount: (h.amount > 0 ? '+' : '') + h.amount,
111
113
  ts: new Date(h.ts).toLocaleString(),
@@ -113,8 +115,8 @@ function cmdStatus() {
113
115
  }));
114
116
  console.log('\n' + tui.table(rows, [
115
117
  { key: 'amount', label: 'XP', minWidth: 8, render: r => tui.styled(r.amount, { color: r.amount.startsWith('+') ? tui.PALETTE.success : tui.PALETTE.danger, bold: true }) },
116
- { key: 'ts', label: 'Zaman', minWidth: 22, render: r => tui.C.muted(r.ts) },
117
- { key: 'reason', label: 'Sebep', minWidth: 30, render: r => tui.C.text(r.reason) },
118
+ { key: 'ts', label: L('Zaman', 'Time'), minWidth: 22, render: r => tui.C.muted(r.ts) },
119
+ { key: 'reason', label: L('Sebep', 'Reason'), minWidth: 30, render: r => tui.C.text(r.reason) },
118
120
  ], { borderStyle: 'round', zebra: true }));
119
121
  }
120
122
  console.log('');
@@ -122,9 +124,9 @@ function cmdStatus() {
122
124
 
123
125
  function cmdStats() {
124
126
  const data = loadXP();
125
- console.log(chalk.bold('\n 📊 XP İstatistikleri\n'));
126
- console.log(chalk.gray(' Toplam XP: ') + chalk.cyan(data.xp.toLocaleString()));
127
- console.log(chalk.gray(' Toplam kayıt: ') + chalk.cyan(data.history.length));
127
+ console.log(chalk.bold(L('\n 📊 XP İstatistikleri\n', '\n 📊 XP Statistics\n')));
128
+ console.log(chalk.gray(L(' Toplam XP: ', ' Total XP: ')) + chalk.cyan(data.xp.toLocaleString()));
129
+ console.log(chalk.gray(L(' Toplam kayıt: ', ' Total records: ')) + chalk.cyan(data.history.length));
128
130
 
129
131
  // Reason bazlı
130
132
  const byReason = {};
@@ -132,7 +134,7 @@ function cmdStats() {
132
134
  byReason[h.reason] = (byReason[h.reason] || 0) + h.amount;
133
135
  }
134
136
  if (Object.keys(byReason).length > 0) {
135
- console.log(chalk.bold('\n 🏷️ Kaynak Bazlı XP:\n'));
137
+ console.log(chalk.bold(L('\n 🏷️ Kaynak Bazlı XP:\n', '\n 🏷️ XP by Source:\n')));
136
138
  for (const [reason, amount] of Object.entries(byReason).sort((a, b) => b[1] - a[1])) {
137
139
  console.log(` ${reason.padEnd(30)} ${chalk.cyan((amount > 0 ? '+' : '') + amount)} XP`);
138
140
  }
@@ -141,30 +143,30 @@ function cmdStats() {
141
143
  }
142
144
 
143
145
  function cmdLeaderboard() {
144
- console.log(chalk.cyan('\n 🏆 Liderlik Tablosu\n'));
145
- console.log(chalk.gray(' Bu özellik api.natureco.me hazır olunca tam çalışacak.\n'));
146
- console.log(chalk.gray(' Şimdilik senin sıralaman local XP dosyanda.\n'));
146
+ console.log(chalk.cyan(L('\n 🏆 Liderlik Tablosu\n', '\n 🏆 Leaderboard\n')));
147
+ console.log(chalk.gray(L(' Bu özellik api.natureco.me hazır olunca tam çalışacak.\n', ' This feature will fully work once api.natureco.me is ready.\n')));
148
+ console.log(chalk.gray(L(' Şimdilik senin sıralaman local XP dosyanda.\n', ' For now your ranking is in your local XP file.\n')));
147
149
  cmdStatus();
148
150
  }
149
151
 
150
152
  function cmdRewards() {
151
- console.log('\n' + tui.styled(' 🎁 Aktif Ödüller', { color: tui.PALETTE.accent, bold: true }));
153
+ console.log('\n' + tui.styled(L(' 🎁 Aktif Ödüller', ' 🎁 Active Rewards'), { color: tui.PALETTE.accent, bold: true }));
152
154
  console.log(tui.styled(' ' + '─'.repeat(56), { color: tui.PALETTE.border }));
153
155
 
154
156
  const rows = [
155
- { level: 'Lv.2', xp: '100 XP', reward: 'NatureCo sticker paketi', color: tui.PALETTE.success },
156
- { level: 'Lv.3', xp: '300 XP', reward: 'NatureBot\'ta özel bot erişimi', color: tui.PALETTE.success },
157
- { level: 'Lv.4', xp: '700 XP', reward: 'Medium\'da otomatik yayınlama', color: tui.PALETTE.secondary },
158
- { level: 'Lv.5', xp: '1500 XP', reward: 'NatureCo Pro ayda 1 ay ücretsiz', color: tui.PALETTE.secondary },
159
- { level: 'Lv.6', xp: '3000 XP', reward: 'Özel NatureCo rozeti', color: tui.PALETTE.accent },
160
- { level: 'Lv.7', xp: '6000 XP', reward: '@Naturecofficial\'dan mention', color: tui.PALETTE.warning },
161
- { level: 'Lv.8', xp: '12000 XP', reward: 'Founder statüsü (sınırlı)', color: tui.PALETTE.danger },
157
+ { level: 'Lv.2', xp: '100 XP', reward: L('NatureCo sticker paketi', 'NatureCo sticker pack'), color: tui.PALETTE.success },
158
+ { level: 'Lv.3', xp: '300 XP', reward: L('NatureBot\'ta özel bot erişimi', 'Special bot access on NatureBot'), color: tui.PALETTE.success },
159
+ { level: 'Lv.4', xp: '700 XP', reward: L('Medium\'da otomatik yayınlama', 'Auto-publishing on Medium'), color: tui.PALETTE.secondary },
160
+ { level: 'Lv.5', xp: '1500 XP', reward: L('NatureCo Pro ayda 1 ay ücretsiz', '1 free month of NatureCo Pro'), color: tui.PALETTE.secondary },
161
+ { level: 'Lv.6', xp: '3000 XP', reward: L('Özel NatureCo rozeti', 'Special NatureCo badge'), color: tui.PALETTE.accent },
162
+ { level: 'Lv.7', xp: '6000 XP', reward: L('@Naturecofficial\'dan mention', 'Mention from @Naturecofficial'), color: tui.PALETTE.warning },
163
+ { level: 'Lv.8', xp: '12000 XP', reward: L('Founder statüsü (sınırlı)', 'Founder status (limited)'), color: tui.PALETTE.danger },
162
164
  ];
163
165
 
164
166
  console.log('\n' + tui.table(rows, [
165
- { key: 'level', label: 'Seviye', minWidth: 8, render: r => tui.styled(r.level, { color: r.color, bold: true }) },
166
- { key: 'xp', label: 'Eşik', minWidth: 10, render: r => tui.C.brand(r.xp) },
167
- { key: 'reward', label: 'Ödül', minWidth: 35, render: r => tui.C.text(r.reward) },
167
+ { key: 'level', label: L('Seviye', 'Level'), minWidth: 8, render: r => tui.styled(r.level, { color: r.color, bold: true }) },
168
+ { key: 'xp', label: L('Eşik', 'Threshold'), minWidth: 10, render: r => tui.C.brand(r.xp) },
169
+ { key: 'reward', label: L('Ödül', 'Reward'), minWidth: 35, render: r => tui.C.text(r.reward) },
168
170
  ], { borderStyle: 'round', zebra: true }));
169
171
  console.log('');
170
172
  }
@@ -176,15 +178,15 @@ function xp(args) {
176
178
  if (action === 'leaderboard') return cmdLeaderboard();
177
179
  if (action === 'rewards') return cmdRewards();
178
180
  if (action === 'help') {
179
- console.log(chalk.yellow('\n Kullanım:'));
180
- console.log(chalk.gray(' natureco xp Mevcut durum'));
181
- console.log(chalk.gray(' natureco xp stats İstatistikler'));
182
- console.log(chalk.gray(' natureco xp leaderboard Liderlik'));
183
- console.log(chalk.gray(' natureco xp rewards Aktif ödüller'));
181
+ console.log(chalk.yellow(L('\n Kullanım:', '\n Usage:')));
182
+ console.log(chalk.gray(L(' natureco xp Mevcut durum', ' natureco xp Current status')));
183
+ console.log(chalk.gray(L(' natureco xp stats İstatistikler', ' natureco xp stats Statistics')));
184
+ console.log(chalk.gray(L(' natureco xp leaderboard Liderlik', ' natureco xp leaderboard Leaderboard')));
185
+ console.log(chalk.gray(L(' natureco xp rewards Aktif ödüller', ' natureco xp rewards Active rewards')));
184
186
  console.log('');
185
187
  return;
186
188
  }
187
- console.log(chalk.red(`\n Bilinmeyen: ${action}\n`));
189
+ console.log(chalk.red(`\n ${L('Bilinmeyen', 'Unknown')}: ${action}\n`));
188
190
  }
189
191
 
190
192
  // Export addXP — diğer modüller XP kazandırabilsin