Pokai Chang
Pokai Chang
Thanks for your PR! However, I got the following error when I try to run `./translate.js auto zh-TW hi`: ``` Projects/alfred-google-translate-workflow/node_modules/@vitalets/google-translate-api/node_modules/got/source/create.js:61 got.stream = (url, options) => got(url, {...options, stream: true});...
或許是 node.js 沒有吃到系統的 proxy 設定?可以試試看直接跑 [`translate.js`](https://github.com/zetavg/alfred-google-translate-workflow/blob/master/translate.js) 會不會動。 Ref: #3
https://github.com/liuxing87327/alfred-google-translate-workflow > 使用translation.js插件翻译,解决原版无法在大陆使用的问题 這個應該可以用!
Cool XD
等我搞完 [npm-package-to-nix](https://github.com/zetavg/nix-packages/tree/master/pkgs/development/nodejs) 就來弄 #7 然後順便弄這個好了 XD
> https://github.com/nikersify/alfred-polyglot > > 😂 作者住在克拉科夫欸,今年初我還剛去過那裡 XDDDD
把語言設定變動態的之後應該也能加個 node proxy 設定,把 #3 #5 解掉。但就需要想辦法弄個 GFW 模擬器(或是等實體入侵牆內的時候順便)(幹嘛?)。
發現用了 `alfy` 變好慢,cold start 要六秒多,想放棄 Orz
@Yukaii 你有用 alfy 的經驗ㄇ?我懷疑是我測試時的環境問題。 但 alfy 會去尋找要用哪個 node 、還會用一個比較正規的方式來產 JSON response,所以稍微多一點時間也是正常的。 ⋯⋯反正我先 setup 好 Babel 吧,之後再來看要不要用 alfy 包
我又試了一次,直接用 commend line 指定 node 跑感覺差不多 (`alfred_workflow_cache=/tmp/xxx node alfy-test.js`),用 `./node_modules/.bin/run-node` 也沒有明顯變慢了耶 現在我比較好奇他的 auto update 是怎麼做到的 XD