Skip to content

Commit f88e3a4

Browse files
committed
enhance translation prompts to handle non-translatable parts in project and issue titles
1 parent ebb54be commit f88e3a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/src/digest/cron.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ export class DigestCron {
8484
// or uncomment to skip the cron
8585
// if (Math.random()) return;
8686

87-
const projectTitleSystemPrompt = `user will give you an open-source project name, and you will translate it to Arabic.`;
87+
const projectTitleSystemPrompt = `user will give you an open-source project name, and you will translate it to Arabic.
88+
it may contain non-translatable parts like acronyms, keep them as is.`;
8889
const contributorNameSystemPrompt = `user will give you an open-source contributor name, and you will translate it to Arabic.
8990
if the name contain both english and arabic only keep the parts related to the language.`;
90-
const issueTitleSystemPrompt = `user will give you an open-source issue/PR title, and you will translate it to Arabic.`;
91+
const issueTitleSystemPrompt = `user will give you an open-source issue/PR title, and you will translate it to Arabic.
92+
it may contain non-translatable parts like acronyms, keep them as is.`;
9193

9294
for (const project of projectsFromDataFolder) {
9395
let name_en = project.name;

0 commit comments

Comments
 (0)