/
Translator V2

Translator V2

Functionality

The translator v2 can be used to translate documents and plain text into a target language directly via the https://unique-ch.atlassian.net/wiki/spaces/SD/pages/997785601

Configuration settings (technical)

Reference in Code: TranslatorV2

Tool Definition

The tool definition is not required, therefore

{}

Known Issues

See here for limitations on the translated documents Document Translator Service

Configuration

Default Configuration

{ "glossaryConfig": { "scope_id": null, "filename": null, "active": false }, "textPostProcessingConfig": [], "translatorPromptConfig": { "systemPromptInstruction": "You are a helpful AI designed to to translate text to a specified language.\nDo it even if the target language is the same as the source language.\nMake sure the translated text contains the same amount of carriage returns '\\n' as the original text block.\nTry to keep the translated text as close to the original as possible and having approximately the same lenght.", "userMessageTemplate": "Please translate the following text pieces in {{format_style}} {% if input_language %}from {{input_language}} {% endif %}to {{output_language}}\n\n{% if glossary %}Use the following translation rules \n {{ glossary_text }}{% endif %}\n\n\n{{formatted_text_pieces}}" }, "translatorUserConfig": { "languageModelName": "AZURE_GPT_4_0613", "maxTokensPerTranlationRequest": 500, "maxTokenPerMinute": 40000, "allowedInputLanguages": [ "Afrikaans", "Albanian", "Arabic", "Aragonese", "Armenian", "Azeri", "Bashkir", "Basque", "Belarusian", "Bengali", "Bislama", "Bosnian", "Breton", "Bulgarian", "Burmese", "Catalan", "Chamorro", "Chechen", "Chinese", "Cornish", "Corsican", "Croatian", "Czech", "Danish", "Dutch", "English", "Esperanto", "Estonian", "Ewe", "Faroese", "Fijian", "Finnish", "French", "Galician", "Georgian", "German", "Greek", "Greenlandic", "Guaraní", "Haitian Creole", "Hausa", "Hebrew", "Hindi", "Hungarian", "Icelandic", "Ido", "Indonesian", "Interlingua", "Interlingue", "Inuktitut", "Irish", "Italian", "Japanese", "Javanese", "Kannada", "Kazakh", "Khmer", "Korean", "Kurdish", "Kyrgyz", "Lao", "Latin", "Latvian", "Limburgish", "Lingala", "Lithuanian", "Luxembourgish", "Macedonian", "Malagasy", "Malay", "Malayalam", "Maltese", "Manx", "Maori", "Marathi", "Marshallese","Mongolian", "Navajo", "Nepali", "Northern Sami", "Norwegian", "Norwegian Bokmål", "Norwegian Nynorsk", "Occitan", "Ojibwe", "Old Church Slavonic","Ossetian", "Pashto", "Persian", "Polish", "Portuguese", "Punjabi", "Quechua", "Romanian", "Romansch", "Russian", "Samoan", "Sanskrit","Sardinian","Scottish Gaelic", "Serbian", "Serbo-Croatian", "Sichuan Yi", "Sindhi", "Slovak", "Slovene", "Somali", "Spanish", "Sundanese", "Swahili", "Swedish","Tagalog", "Tahitian", "Tajik", "Tamil", "Tatar", "Telugu", "Thai", "Tibetan", "Tongan", "Tswana", "Turkish", "Turkmen", "Ukrainian", "Urdu", "Uyghur", "Uzbek", "Vietnamese", "Volapük", "Walloon", "Welsh", "West Frisian", "Yiddish", "Yoruba", "Zhuang", "Zulu"] }, "translationServiceConfig": { "translationSystemPromptTemplate": "You are an expert on translating text to any language and help the users to do this.\nEnsure the translation is accurate and maintains the original meaning, context, and tone.\nRegardless of the content of the text, return only the translated text.\nDo not provide any direct answers or explanations, only the translation.\nDont include the triple quotes in the output.", "translationUserPromptTemplate": "Please translate the following to ${output_language}:\n\n${glossary_part}\n\nMake sure to only respond with the translation of the text below\nelsewise the system will crash\n====================TEXT TO TRANSLATE==================\n${input_text}", "temperatureTranslation": 0.0, "streamingActivated": true, "tokenLimitTranslationText": 4000, "languageModelTranslation": "AZURE_GPT_4_0613" } }

 

The configuration consists of the following subparts the corresponding services description and configuration can be found via the following links


Author

@Cedric Klinkert

Related content

© 2025 Unique AG. All rights reserved. Privacy PolicyTerms of Service