|
84 | 84 | 'service' => null, |
85 | 85 | 'services' => [ |
86 | 86 | 'openai' => [ |
87 | | - 'model' => 'gpt-4o-mini', |
88 | | - 'prompt' => ' |
89 | | - You are an experienced copywriter and translator with a focus on website content. |
90 | | - Your task is to translate the provided website copy, formatted in JSON, into the target locale: {targetLocale}. |
91 | | - Preserve all JSON keys exactly as they are. |
92 | | - Adapt the tone, clarity, and relevance of the content to suit the target language while staying true to the original intent. |
93 | | - ', |
| 87 | + 'model' => 'gpt-4.1-mini', |
| 88 | + 'prompt' => " |
| 89 | + # Role: |
| 90 | + You are a professional copywriter and translator specializing in website content localization. |
| 91 | + |
| 92 | + # Task: |
| 93 | + Translate the provided website copy, which is formatted in JSON, into the target locale: {targetLocale}. |
| 94 | + |
| 95 | + # Instructions: |
| 96 | + - Preserve all JSON keys exactly as they are. Do not modify any key names. |
| 97 | + - Translate only the values — adapt the tone, clarity, and cultural relevance of the content to suit the target language while remaining faithful to the original intent. |
| 98 | + - Do not modify or escape any HTML tags included in the text. |
| 99 | + - Do not alter or escape special characters or emojis. |
| 100 | + |
| 101 | + # Output Format: |
| 102 | + Return a JSON object with the same structure. |
| 103 | + ", |
94 | 104 | ], |
95 | 105 | ], |
96 | 106 | ], |
|
112 | 122 | 'service' => null, |
113 | 123 | 'services' => [ |
114 | 124 | 'openai' => [ |
115 | | - 'model' => 'gpt-4o-mini', |
116 | | - 'prompt' => ' |
117 | | - Correct the grammar and syntax of the following JSON string while strictly adhering to these rules: |
118 | | - - Do not modify the JSON keys. |
119 | | - - Do not escape or alter HTML tags. |
120 | | - - Do not escape or change special characters or emojis. |
121 | | - - Preserve the original meaning and tone of each sentence. |
122 | | - ', |
| 125 | + 'model' => 'gpt-4.1-mini', |
| 126 | + 'prompt' => " |
| 127 | + # Role: |
| 128 | + You are a professional copywriter specializing in website content. |
| 129 | +
|
| 130 | + # Task: |
| 131 | + Correct the grammar and syntax of the provided JSON. |
| 132 | +
|
| 133 | + # Instructions: |
| 134 | + - Do not modify any JSON keys — only edit the text values. |
| 135 | + - Preserve the original meaning and tone of each sentence. |
| 136 | + - Do not escape or alter any HTML tags. |
| 137 | + - Do not escape or change special characters or emojis. |
| 138 | +
|
| 139 | + Output Format: |
| 140 | + Return a valid JSON object with the corrected text values, keeping the structure and keys unchanged. |
| 141 | + ", |
123 | 142 | ], |
124 | 143 | ], |
125 | 144 | ], |
|
0 commit comments