Skip to content

Incorrect translation from English to Ukrainian if the string contains symbol # #34

@gregzhadko

Description

@gregzhadko

If the string includes the symbol #, the English to Ukrainian translation may not be accurate.
Please see the code below

var translator = new Translator(authKey);

var correctTranslation = await translator.TranslateTextAsync("Test Dress-code", LanguageCode.English, LanguageCode.Ukrainian);
var incorrectTranslation = await translator.TranslateTextAsync("Test Dress-code#", LanguageCode.English, LanguageCode.Ukrainian);
Console.WriteLine(correctTranslation);      //Printed: Тестовий дрес-код - Correct
Console.WriteLine(incorrectTranslation);    //Printed: Тестовий дресс-код## Тестовий дресс-код##. - Incorrect

I checked the text on deepl.com, and the translation is functioning correctly there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions