Nuzwa commited on
Commit
a2fcfed
·
verified ·
1 Parent(s): 2d09aff

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +3 -3
script.js CHANGED
@@ -44,14 +44,14 @@ function formatResponse({ idea, details, tone, format, length, language }) {
44
  paragraph: `Here’s a ${tone.toLowerCase()} take on your idea. `,
45
  bulletsIntro: `Key points:\n`,
46
  emailIntro: `Subject: ${idea || 'Your Idea'}\n\nHi there,\n\n`,
47
- outro: `\n\n— Generated by Brand AI`
48
  },
49
  Urdu: {
50
  intro: `آئیڈیا: ${idea || '—'}\nتفصیل: ${details || '—'}\nلہجہ: ${tone} • فارمیٹ: ${format} • طوالت: ${length}\n\n`,
51
  paragraph: `یہ آپ کے آئیڈیا پر ایک ${tone} انداز ہے۔ `,
52
  bulletsIntro: `اہم نکات:\n`,
53
  emailIntro: `موضوع: ${idea || 'آپ کا آئیڈیا'}\n\nالسلام علیکم،\n\n`,
54
- outro: `\n\n— برانڈ اے آئی`
55
  }
56
  }[language];
57
 
@@ -70,7 +70,7 @@ function formatResponse({ idea, details, tone, format, length, language }) {
70
  const contentByFormat = {
71
  'Paragraph': `${base.paragraph}${detailsByLength}`,
72
  'Bullet Points': `${base.bulletsIntro}- ${detailsByLength}\n- Audience relevance\n- Clear next step`,
73
- 'Email': `${base.emailIntro}${detailsByLength}\n\nBest regards,\nYour Brand`
74
  }[format];
75
 
76
  return `${base.intro}${contentByFormat}${base.outro}`;
 
44
  paragraph: `Here’s a ${tone.toLowerCase()} take on your idea. `,
45
  bulletsIntro: `Key points:\n`,
46
  emailIntro: `Subject: ${idea || 'Your Idea'}\n\nHi there,\n\n`,
47
+ outro: `\n\n— generated by coachproai`
48
  },
49
  Urdu: {
50
  intro: `آئیڈیا: ${idea || '—'}\nتفصیل: ${details || '—'}\nلہجہ: ${tone} • فارمیٹ: ${format} • طوالت: ${length}\n\n`,
51
  paragraph: `یہ آپ کے آئیڈیا پر ایک ${tone} انداز ہے۔ `,
52
  bulletsIntro: `اہم نکات:\n`,
53
  emailIntro: `موضوع: ${idea || 'آپ کا آئیڈیا'}\n\nالسلام علیکم،\n\n`,
54
+ outro: `\n\n— coachproai`
55
  }
56
  }[language];
57
 
 
70
  const contentByFormat = {
71
  'Paragraph': `${base.paragraph}${detailsByLength}`,
72
  'Bullet Points': `${base.bulletsIntro}- ${detailsByLength}\n- Audience relevance\n- Clear next step`,
73
+ 'Email': `${base.emailIntro}${detailsByLength}\n\nBest regards,\ncoachproai`
74
  }[format];
75
 
76
  return `${base.intro}${contentByFormat}${base.outro}`;