pabal-web-mcp 1.4.0 → 1.4.1

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.
@@ -1453,7 +1453,7 @@ ${optimizedPrimary}
1453
1453
 
1454
1454
  `;
1455
1455
  if (hasPrimaryResearch) {
1456
- prompt += `**\u{1F4DA} ENGLISH (${primaryLocale}) Keywords - Use as fallback for locales without research:**
1456
+ prompt += `**\u{1F4DA} ENGLISH (${primaryLocale}) Keywords - Use as fallback for locales without research (MUST TRANSLATE to target language):**
1457
1457
  ${primaryResearchSections.join("\n")}
1458
1458
 
1459
1459
  `;
@@ -1472,35 +1472,42 @@ ${researchSections.join(
1472
1472
 
1473
1473
  `;
1474
1474
  } else if (hasPrimaryResearch) {
1475
- prompt += `### Locale ${loc}: \u26A0\uFE0F No saved research - USE ENGLISH (${primaryLocale}) KEYWORDS
1475
+ prompt += `### Locale ${loc}: \u26A0\uFE0F No saved research - TRANSLATE ENGLISH KEYWORDS TO ${loc.toUpperCase()}
1476
1476
  `;
1477
1477
  prompt += `No keyword research found at ${researchDir}.
1478
1478
  `;
1479
- prompt += `**FALLBACK:** Translate English keywords from primary locale (${primaryLocale}) into ${loc}:
1479
+ prompt += `**CRITICAL FALLBACK STRATEGY:** You MUST translate English keywords from primary locale (${primaryLocale}) into ${loc}. DO NOT use English keywords directly.
1480
+
1481
+ `;
1482
+ prompt += `**Translation Steps:**
1480
1483
  `;
1481
- prompt += `1. Take the Tier 1/2/3 keywords from English research above
1484
+ prompt += `1. Take the Tier 1/2/3 keywords from English research above (${primaryLocale})
1482
1485
  `;
1483
- prompt += `2. Translate each English keyword naturally into ${loc} (not literal translation)
1486
+ prompt += `2. **TRANSLATE each English keyword into ${loc}** - use natural, native expressions (NOT literal word-for-word translation)
1484
1487
  `;
1485
- prompt += `3. Use native expressions that ${loc} users would actually search for
1488
+ prompt += `3. Ensure translated keywords are what ${loc} users would actually search for in their language
1486
1489
  `;
1487
- prompt += `4. Verify translations are culturally appropriate
1490
+ prompt += `4. Verify translations are culturally appropriate and contextually relevant
1488
1491
  `;
1489
- prompt += `5. Apply translated keywords following the same tier strategy
1492
+ prompt += `5. Apply the **TRANSLATED** keywords (in ${loc} language) following the same tier strategy
1493
+ `;
1494
+ prompt += `6. **DO NOT use English keywords in ${loc} locale** - all keywords must be in ${loc} language
1490
1495
 
1491
1496
  `;
1492
1497
  } else {
1493
- prompt += `### Locale ${loc}: \u26A0\uFE0F No research - USE ENGLISH KEYWORDS FROM optimizedPrimary
1498
+ prompt += `### Locale ${loc}: \u26A0\uFE0F No research - TRANSLATE ENGLISH KEYWORDS FROM optimizedPrimary TO ${loc.toUpperCase()}
1499
+ `;
1500
+ prompt += `No keyword research found. Extract keywords from the optimizedPrimary JSON above and **TRANSLATE them to ${loc}**:
1494
1501
  `;
1495
- prompt += `No keyword research found. Extract keywords from the optimizedPrimary JSON above and translate them:
1502
+ prompt += `1. Extract keywords from \`aso.keywords\` in optimizedPrimary (these are in English/${primaryLocale})
1496
1503
  `;
1497
- prompt += `1. Extract keywords from \`aso.keywords\` in optimizedPrimary
1504
+ prompt += `2. **TRANSLATE each English keyword naturally into ${loc}** - use native search expressions
1498
1505
  `;
1499
- prompt += `2. Translate each English keyword naturally into ${loc}
1506
+ prompt += `3. Ensure translated keywords match what ${loc} users would actually search for
1500
1507
  `;
1501
- prompt += `3. Use native expressions that ${loc} users would actually search for
1508
+ prompt += `4. Apply the **TRANSLATED** keywords (in ${loc} language) to all ASO fields
1502
1509
  `;
1503
- prompt += `4. Apply translated keywords to all ASO fields
1510
+ prompt += `5. **DO NOT use English keywords in ${loc} locale** - all keywords must be translated to ${loc}
1504
1511
 
1505
1512
  `;
1506
1513
  }
@@ -1589,9 +1596,9 @@ ${researchSections.join(
1589
1596
  `;
1590
1597
  prompt += `Process EACH locale in this batch sequentially:
1591
1598
  `;
1592
- prompt += `1. Use saved keyword research OR translate from primary locale if missing (see fallback strategy above)
1599
+ prompt += `1. Use saved keyword research (in target language) OR **TRANSLATE English keywords from primary locale** if missing (see fallback strategy above - MUST translate, not use English directly)
1593
1600
  `;
1594
- prompt += `2. Replace keywords in ALL fields:
1601
+ prompt += `2. Replace keywords in ALL fields (use translated keywords in target language):
1595
1602
  `;
1596
1603
  prompt += ` - \`aso.keywords\` array
1597
1604
  `;
@@ -1647,11 +1654,11 @@ ${researchSections.join(
1647
1654
  `;
1648
1655
  prompt += `**1. Keyword Source**
1649
1656
  `;
1650
- prompt += ` - If saved research exists: Cite file(s) used; list selected top 10 keywords
1657
+ prompt += ` - If saved research exists: Cite file(s) used; list selected top 10 keywords (in target language)
1651
1658
  `;
1652
- prompt += ` - If using fallback: List translated keywords from primary locale with translation rationale
1659
+ prompt += ` - If using fallback: List **TRANSLATED** keywords from primary locale (English \u2192 target language) with translation rationale
1653
1660
  `;
1654
- prompt += ` - Show final 10 keywords in target language with tier assignments
1661
+ prompt += ` - Show final 10 keywords **IN TARGET LANGUAGE** with tier assignments - DO NOT show English keywords
1655
1662
 
1656
1663
  `;
1657
1664
  prompt += `**2. Updated JSON** (complete locale structure with keyword replacements)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pabal-web-mcp",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "description": "MCP server for ASO data management with shared types and utilities",
6
6
  "author": "skyu",