Help desk translation: member messages in other languages get an English translation (Telegram, admin email, admin view, bot thread); Marty's replies go back in the member's language with his English underneath (OpenRouter, reasoning off; failures fall back to untranslated)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ async function sendList(which) {
|
||||
async function showThread(ref) {
|
||||
const t = await deps.tickets.byRef(ref); if (!t) return say('No ticket ' + escH(ref) + '.');
|
||||
const v = await deps.tickets.adminView(t.id);
|
||||
const msgs = (v.messages || []).slice(-6).map(m => (m.internal ? '📝 note' : m.author === 'admin' ? '↩️ you' : '👤 ' + escH(t.name || t.email)) + ': ' + escH(String(m.body).slice(0, 500)));
|
||||
const msgs = (v.messages || []).slice(-6).map(m => (m.internal ? '📝 note' : m.author === 'admin' ? '↩️ you' : '👤 ' + escH(t.name || t.email)) + ': ' + escH(String(m.body).slice(0, 500)) + (m.bodyEn ? '\n🌐 in English: ' + escH(String(m.bodyEn).slice(0, 500)) : ''));
|
||||
return say('<b>' + t.ref + '</b> · ' + STATUS_WORD[t.status] + ' · ' + (t.platform === 'linkspin' ? '🔗 <b>LinkSpin</b>' : escH((deps.tickets.PLATFORM_NAME || {})[t.platform] || t.platform)) + ' · ' + escH(t.category) + '\n' + escH(t.email) + '\n<b>' + escH(t.subject) + '</b>\n\n' + msgs.join('\n\n'), { reply_markup: keyboard(t.ref) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user