-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multilingual images #3897
Comments
|
Thank you @teolemon! I don't know yet which path I'm going to take first. |
@teolemon I guess the following would be OK in a first approach, but the image itself is getting smaller.
|
LGTM |
The app is mapping a new Romanian ingredients crop to French ingredients field, when I pop up the gallery from a French ingredients image, and then click on the language droppown to add Romanian |
@teolemon That's why I labeled the PR as "READ-ONLY"... How are we supposed to let the user add image in a new language?
What do you think of that? |
How about getting rid of the gallery alltogether and arriving directly on the swipeable version ? |
The gallery is currently called from two places:
In both cases, that would be possible to go directly to the swipeable page without too much trouble.
I'm not against the concept of getting rid of the gallery (especially this one that does not look at all like a "gallery" with such little thumbnails). Let me try first something at the swipeable page level:
|
ok, let's go this way and see how it goes 👍 |
Problem
There are pending issues about multilingual ingredients and packagings.
Both rely on OCR.
That means we need multilingual images in Smoothie too. Currently it's not the case, e.g. with a single
imageFrontUrl
product field with no language.The UX would be similar to #3890, with a language selector. In a first approach that language selector would only be implemented in "edit" pages (ingredients, packaging).
The typical use-case is for multilingual countries like Belgium or Canada, or products with several languages.
Proposed solution
In the
images
product field, we have multilingual data, likefront_fr
andfront_es
.cf. https://fr.openfoodfacts.org/api/v3/product/5010477348678?fields=images:
The solution is to:
images
in order to build multilingual image URLs5010477348678
front
es
rev
219
full
size=> https://images.openfoodfacts.org/images/products/501/047/734/8678/front_es.219.full.jpg
=> https://images.openfoodfacts.org/images/products/501/047/734/8678/front_fr.211.full.jpg
imageFrontUrl
as a fallback (typically if there's no specific image in that language)Currently we always use
imageFrontUrl
, regardless of the language.That makes sense when we're in a country with a single language.
Additional context
Part of
The text was updated successfully, but these errors were encountered: