Comments (5)
Much easier to use! Thanks @ChxGuillaume !
Screen.Recording.2024-04-04.at.9.37.48.PM.mov
from accent.
After some investigation, it seems to come from some frontend GraphQL request in this component/function:
accent/webapp/app/components/inline-machine-translate/component.ts
Lines 23 to 40 in c0c8d83
It seems like this GraphQL Request needs a targetLanguageSlug
and sourceLanguageSlug
In this method, it seems like the param targetLanguageSlug
should be sourceLanguageSlug
It is then missing the targetLanguageSlug
from request based on the "conflict list column"
from accent.
Hi @simonprev,
Would like to know something regarding the Machine Translation feature.
Are the languages proposed in the inputs supposed to be a Source selection or the other way around?
I thought it was meant to select the source language you wanted to use for translation into the current "context" language π
I suppose if it is Target from Source, the source would be the primary language?
Sorry for bothering you with this issue π
from accent.
Hi @ChxGuillaume ! Yeah the UX for this is not optimal, I see why you thought that the select was the source language.
The way this works is by using the "detect language" of the provider like DeepL and Google Translate. The fix is already in master
branch and 1.21.0
. The proposed languages in the select are choices "to be translated in". Youβre right that itβs pointless since we know the "target" language since we are in the context of a language in the textarea.
This means we should just remove the list of language and make the "translate" icon just send the text with the current textarea language context as the "target" parameter.
That makes sense?
from accent.
Okay yup, get it.
Thanks for the clarification π
from accent.
Related Issues (20)
- CLI sync doesn't work HOT 1
- Allow multiple sessions
- Can't click on the pen button in the review tab HOT 1
- Just-in-place widget: show code in search, show "source" and "current vs proposed" translations in edit
- Is it possible to sync both ways? HOT 1
- Review - Some translations are in the wrong column HOT 5
- Increase tolerance for Yaml files or increase tolerance for Yaml types HOT 1
- Unable to use Microsoft OAuth
- Improve OAuth
- Syncing doesn't work at all anymore HOT 1
- Extra Headers support in CLI HOT 1
- OIDC Login
- Markdown linting rules HOT 2
- Opening the Review tab is very slow since its redesign HOT 2
- ERROR 3F000 (invalid_schema_name) schema "public" does not exist
- Unable to run application, no clear error HOT 1
- Preserving comments from po files when syncing
- Postgres works and when starting accent, is not accessible from localhost:4000 HOT 1
- How to setup machine translation? Can't find docs on it...
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 accent.