Comments (8)
Isn't the same as #16 ?
from gtranslate.
yes it seems there is overlap
from gtranslate.
Using this crude fix atm to show more translations:
\resources\gtranslate\lib\providers\google-translate.js
at line 26
const translation = (
result[1] ? result[1].map(chunk => chunk[0] + ': ' + chunk[1].join(', ')).join('; ') :
result[0] && result[0].map(chunk => chunk[0]).join(' ')
) || null
The result is like noun: noun1, noun2; verb: verb1, verb2
from gtranslate.
created a new branch: https://github.com/bpierre/gtranslate/tree/dictionary
6e5538e
For now alternative translations are implemented, but:
-should we show a sign in the non-mouseover text to show there is more in the mouseover?
-should we limit the amount of alternatives? How? The mouseover text can get quite large.
-The text column align didn't work as well as expected
from gtranslate.
@mote0230 I am just trying, that’s great!
-should we show a sign in the non-mouseover text to show there is more in the mouseover?
To indicate that we are in single word mode, maybe we could take the most popular one and display it directly in the menuitem:
maison (noun, synonyms: maison, chambre, famille…)
-should we limit the amount of alternatives? How? The mouseover text can get quite large.
-The text column align didn't work as well as expected
Yes tooltips are really limited to format text, and highly depend on the OS. Maybe we could limit the alternatives to 10 or something like that, and each alternative to 10 words max.
from gtranslate.
Looks like I'm not the only one who's "test word" is house ;)
For limiting to 10, map() doesn't support continue and break, so I think I would have to change it to use for loops, or do you know of a more functional style way to do this?
from gtranslate.
You could use sort()
to order the results, then slice()
. You may have to associate the groups (noun, adjective) with each result before doing that, depending on how the data is structured. I am also OK with a for loop (you can use for…of in Firefox).
Looks like I'm not the only one who's "test word" is house ;)
Yes it’s from your example ;-)
from gtranslate.
🆒 https://github.com/bpierre/gtranslate/releases/tag/v0.12.0
from gtranslate.
Related Issues (20)
- Move 2MB of graphics from addon to AMO HOT 1
- Google Translate Service Error HOT 4
- "google translate service error" HOT 2
- Google token variable changing HOT 1
- Copy to the clipboard
- Firefox Android support HOT 8
- Port to new WebExtension format HOT 60
- Change the algorithm automatic mode HOT 6
- Google Translate Service Error again HOT 6
- Move to paid Google Translate API HOT 2
- Google Translate Service Error HOT 2
- IRC channel HOT 1
- Use translation service/tool HOT 1
- Description update
- Check Firefox e10s compability HOT 14
- Doesn't work with FF57 Quantum HOT 3
- Please update for FireFox Quantum HOT 1
- New firefox compatibility HOT 1
- Compatibility on Firefox Quantum HOT 1
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtranslate.