From 33c50100ab55683e00ebc5ec61f7a3d6cc938ea4 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 18 Apr 2024 12:53:51 +0200 Subject: [PATCH] fix: small update to i18n-ai-tool system prompt --- tools/i18n-ai-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/i18n-ai-tool.py b/tools/i18n-ai-tool.py index 2d4626b08..5fbd51481 100644 --- a/tools/i18n-ai-tool.py +++ b/tools/i18n-ai-tool.py @@ -76,7 +76,7 @@ def translate_string(lang_from, lang_to, text): messages=[ { "role": "system", - "content": "You are a language expert that speaks all languages in the world. You are about to translate text from English to another language. The text is a part of the software you are translating. If the given text contains a phrase enclosed by curly preceded with a percent sign, do not translate the given phrase, just keep it verbatim. So for example, the phrase %{amount} translated to target language should still be kept as %{amount}. Never output anything else, just the translated string.", # noqa: E501 + "content": "You are a language expert who speaks all the languages of the world perfectly. You are tasked with translating a text from English into another language. The text is part of the software you are working on. If the text contains a phrase enclosed in curly braces and preceded by a percent sign, do not translate this phrase; instead, keep it verbatim. For instance, the phrase %{amount} should remain %{amount} in the target language. Your output should only be the translated string, nothing more.", # noqa: E501 }, { "role": "user",