gptrans 1.2.6 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db/gptrans_ar.json +3 -0
- package/db/gptrans_from_en-US.json +2 -1
- package/db/gptrans_from_es.json +3 -0
- package/demo/case_3.js +12 -0
- package/index.js +4 -1
- package/package.json +1 -1
- package/prompt/translate.md +2 -1
package/db/gptrans_ar.json
CHANGED
package/demo/case_3.js
ADDED
package/index.js
CHANGED
package/package.json
CHANGED
package/prompt/translate.md
CHANGED
|
@@ -10,11 +10,12 @@ INPUT
|
|
|
10
10
|
|
|
11
11
|
# Warnings
|
|
12
12
|
- **Context:** I will provide you with a text in FROM_DENONYM FROM_LANG. The goal is to translate it to TARGET_ISO (TARGET_DENONYM TARGET_LANG) while maintaining the essence, style, intention, and tone of the original.
|
|
13
|
+
- **Proper names:** Do not translate proper names (people, places, brands, etc.) unless they have an officially recognized translation in the target language.
|
|
13
14
|
- **Cultural references:** Adapt or explain references that are not familiar in TARGET_DENONYM culture, whenever necessary.
|
|
14
15
|
- **Wordplay and humor:** When it's impossible to directly translate wordplay, find a resource that recreates the playful effect.
|
|
15
16
|
- **Idioms:** Do not introduce new idioms or expressions that are not present in the original text.
|
|
16
17
|
- **Variables:** Do not translate content between curly braces {variable}. These are system variables and must remain exactly the same.
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
|
|
19
20
|
# Context
|
|
20
21
|
CONTEXT
|