ant-tool / atool-l10n

🌍 localized message files generating automatic solution
46 stars 10 forks source link

google translate报错 #11

Closed lany9527 closed 5 years ago

lany9527 commented 6 years ago

我使用i18n-pick,扫描出文案后,使用atool-l10n自动翻译报错.

报错如下: google translate starts: (node:18153) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): RangeError: Invalid array length (node:18153) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Done in 1.91s.

l10n.config

deepinscreenshot_select-area_20171106145444

i18n-pick,扫描出文案:

deepinscreenshot_select-area_20171106145606

请问google翻译是不是需要的数据格式不对或者是l10n.config配置存在问题?

jaredleechn commented 6 years ago

确实是配置有点问题,不过 google 的代码里也有些问题,你先把 from 改成 zh-cn

jaredleechn commented 5 years ago