Open vanloc0301 opened 6 years ago
Thank you for your feedback!!!
And 🤔emmmm..., to be honest, I didn't have any plan to support other languages at the beginning,
not only because the Sougou-translate-engine
I used which is super Chinese local, it perform disappointed at "other language -> english", but the engine's API-network is not good out of Chinese mainland as well (thus you can see i didn't put an english version readme there
But, could you plz tell me your mother language?
If there has a little strong demands of other language version, I'll be happy to build a new extension for your guys(cause it must be awkward if somebody want to transform the engine in this extension, many components were couplinged with Sougou
very deeply now
Oh, the command you run will build a folder named dist
, and you can load the folder in chrome://extensions
page by click the LOAD UNPACKED button, it will load this extension in development mode, see more here
And, crx
file was packed in chrome by PACK EXTENSION button in this page too
LZ 同学看上去母语应该是越南语。
Yes, I'm from Vietnam. I hope you add this feature in future for every language. I found you're using Sougou-translate-engine
. If you can use Google Translate API it will be working.
I found at index.js
have to define sougouTranslate
. I check in sougou website has supported many languages include Vietnamese. So, I tried to change from to: 'zh-CHS'
to vi-VN
. But it is not a success.
sougouTranslate(text) {
const payload = {
from: 'auto',
to: 'vi-VN'
}
@vanloc0301 YES! Since the Sougou is not even a little bit good at translating other language -> english(such as Vietnamese), it only return not a standard data format which merely contain single word without oxford-dict's translations, for that the result-panel
component would parse it error.
THRER WOULD BE A SOLUTION if you can format result form any-engine else's (google / cambridge...) to this construction
Hi @waynecz .
I tested Sougou also translate from English -> Vietnamese. The result looks like Google Translate. With cambridge.org, I can't access to API because it requires payment (free 30 days API evaluation key).
Currently, only have two choice is Google Translate and Sougou.
I don't have any experience with Node.js. Can you write sample code for my problem?
If you can add the new method to another language. I think your repository an inheritance and using for many purposes.
Hi @waynecz ,
Can you help me?
Hi @vanloc0301 , sorry about reply late,
The API I used was free totally, which site did you test, is the url fanyi.sougou.com
? And the UI looks like
.
I cannot comprehend what problem you met exactly, but I still do not recommend use Sougou for translate languages like English -> Vietnamese. Could you specify which module of sample code do you need.
Add a new method to another language will cost a lot of time for now but I will try
Hi @waynecz , thank for your response.
Sogou
for the Chinese language.
I don't use Chinese as the main language. Have any method to change to another language?
Currently, I using Google Translate add-on, but it doesn't have function review history.
So, I think your plugin is the best for me.
I think you can add function to change:
translate from "language" to "another language"
That's a great idea and easy useful for many people using your add-on.
I tried to folk your repo and run:
npm install
`npm run dev
It shows look like this:
I tried to find .crx file in
./releases
folder, but seem this file is not generated by this command, it was created before.How to import the addon after build success to Chrome?
Sorry, I don't have any experience with Node.js.
I only know few basic skill.
Thank you very much.