Skip to content

Issues with translating to Greek #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Frohus opened this issue May 29, 2025 · 1 comment
Closed

Issues with translating to Greek #132

Frohus opened this issue May 29, 2025 · 1 comment

Comments

@Frohus
Copy link

Frohus commented May 29, 2025

Hi,

We're using DeepL in our codebase to translate content from British English into several target languages: French, Italian, Spanish, Portuguese, and Polish — all of which work as expected. However, we're encountering an issue with Greek: the API returns the original (untranslated) text.

A few notes:

  • The source text occasionally includes HTML tags, but this hasn't caused any issues with the other target languages.
  • Translating the same text using the DeepL web translator (manually) works correctly for Greek.
  • This issue appears specific to the API when targeting Greek.

Is this a known issue, or is there something we might be doing wrong?

Version: currently on 1.19.1 but upgrading doesn't make a difference

Example text:

This product is for car investors looking to get brand-new cars at the <strong>best value for money</strong> who do not mind which brand of car they own. We only supply cars from approved dealers selected from those currently available in stock, and we cannot specify which brand of car you will receive.
@JanEbbing
Copy link
Member

JanEbbing commented May 29, 2025

Sorry, I cant reproduce this. Are you using next-gen or classic models (though this works for me for both).

The following code:

import deepl

auth_key = 'MY_AUTH_KEY'
client = deepl.DeepLClient(auth_key, send_platform_info=False)
text = 'This product is for car investors looking to get brand-new cars at the <strong>best value for money</strong> who do not mind which brand of car they own. We only supply cars from approved dealers selected from those currently available in stock, and we cannot specify which brand of car you will receive.'
result = client.translate_text(text, target_lang='EL')
print(result.text)

gives

Το προϊόν αυτό απευθύνεται σε επενδυτές αυτοκινήτων που επιθυμούν να αποκτήσουν ολοκαίνουργια αυτοκίνητα με την <strong>καλύτερη δυνατή σχέση ποιότητας-τιμής</strong> και δεν τους ενδιαφέρει η μάρκα του αυτοκινήτου που κατέχουν. Προμηθεύουμε μόνο αυτοκίνητα από εγκεκριμένους αντιπροσώπους που επιλέγονται από αυτά που είναι επί του παρόντος διαθέσιμα σε απόθεμα και δεν μπορούμε να καθορίσουμε ποια μάρκα αυτοκινήτου θα λάβετε.

Are you setting the correct source and target languages? Are you using source language detection (like in my example)? If the source language matches the target language, the API just returns the input text as there is nothing to do.

@Frohus Frohus closed this as completed May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants