ahmeterenodaci / easygoogletranslate

Easy Google Translate: Unofficial Google Translate API
99 stars 14 forks source link

apostrophe is not detected ?? #2

Closed ahmadkarimi4 closed 2 years ago

ahmadkarimi4 commented 2 years ago

Problem

Desired result

Bankman-Fried, the former CEO of bankrupt cryptocurrency exchange FTX, lost his entire $16 billion fortune in one of the largest losses in history, reports Bloomberg. At the peak of the business, the entrepreneur's fortune was estimated at $ 26 billion. If you allow me, I'll post a link. Thanks

Current result

Img

Code to Replicate issue

from easygoogletranslate import EasyGoogleTranslate
koko="Бывший гендиректор обанкротившейся криптовалютной биржи FTX Бэнкман-Фрид потерял все свое состояние в $16 млрд. Это один из крупнейших в истории случаев утраты состояния, передает Блумберг. На пике бизнеса состояние предпринимателя оценивалось в $26 млрд."
koko1="""Если разрешите кину ссылку.
Спасибо"""
translator=EasyGoogleTranslate()
print(koko)
print(koko1)

def tr(text):
    result = translator.translate(f'{(text)}', target_language='en')
    return result

mk=tr(koko)
kk=tr(koko1)
print(mk)
print(kk)
ahmeterenodaci commented 2 years ago

Hey, I released a new update to fix this.

If you have installed the package via pip, you can update it with the following command.

pip install easygoogletranslate --upgrade

Updated result:

resim

ahmadkarimi4 commented 2 years ago

thanks