Skip to content

Commit 48c4eb1

Browse files
authored
Merge pull request Expensify#69577 from huult/68373-improve-prompting
improve chatgpt prompting
2 parents 6517be6 + 09e05c5 commit 48c4eb1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

prompts/translation/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export default function (targetLang: TranslationTargetLocale): string {
1515
- If the given phrase can't be translated, reply with the same text unchanged.
1616
- Do not modify or translate any html tags.
1717
- Do not change any URLs.
18+
- IMPORTANT: Respond ONLY with the translated text. Do not add explanations, questions, or apologies.
19+
- IMPORTANT: If you need clarification, respond with the original text unchanged rather than asking questions.
1820
1921
Treat the following words and phrases as proper nouns which should never be translated:
2022

src/languages/nl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ const translations = {
377377
signInWithGoogle: 'Inloggen met Google',
378378
signInWithApple: 'Inloggen met Apple',
379379
signInWith: 'Inloggen met',
380-
continue: "I'm sorry, but I need a specific string or text to translate. Could you please provide the text you would like translated to Nederlands?",
380+
continue: 'Doorgaan',
381381
firstName: 'Voornaam',
382382
lastName: 'Achternaam',
383383
scanning: 'Scannen',
@@ -5452,7 +5452,7 @@ const translations = {
54525452
subscriptionText: ({usersCount, finalCount}: ChangeOwnerSubscriptionParams) =>
54535453
`Het overnemen van deze werkruimte zal het jaarlijkse abonnement samenvoegen met uw huidige abonnement. Dit zal uw abonnementsomvang vergroten met ${usersCount} leden, waardoor uw nieuwe abonnementsomvang ${finalCount} wordt. Wilt u doorgaan?`,
54545454
duplicateSubscriptionTitle: 'Waarschuwing voor dubbele abonnementen',
5455-
duplicateSubscriptionButtonText: "I'm sorry, but I need a specific string or text to translate. Could you please provide the text you would like translated to Nederlands?",
5455+
duplicateSubscriptionButtonText: 'Doorgaan',
54565456
duplicateSubscriptionText: ({email, workspaceName}: ChangeOwnerDuplicateSubscriptionParams) =>
54575457
`Het lijkt erop dat je de facturering voor de werkruimtes van ${email} probeert over te nemen, maar om dat te doen, moet je eerst beheerder zijn van al hun werkruimtes.\n\nKlik op "Doorgaan" als je alleen de facturering voor de werkruimte ${workspaceName} wilt overnemen.\n\nAls je de facturering voor hun hele abonnement wilt overnemen, laat hen je dan eerst als beheerder toevoegen aan al hun werkruimtes voordat je de facturering overneemt.`,
54585458
hasFailedSettlementsTitle: 'Kan eigendom niet overdragen',

0 commit comments

Comments
 (0)