openfoodfacts / openfoodfacts-explorer

An alternative frontend for OpenFoodFacts, made with SvelteKit
https://openfoodfacts-explorer.vercel.app/
GNU Affero General Public License v3.0
25 stars 50 forks source link

Delete language in product edit page #309

Open Bhavishya2601 opened 1 month ago

Bhavishya2601 commented 1 month ago

Problem

Add a feature to delete a language in products edit page The reason behind is I was exploring the add the language section and clicked randomly on some languages and found that there's no way to actually delete them

Proposed solution

Here we can first show all the added languages in the field and they can have a cross sign next to it, clicking it would delete that specific language Image

I would like to work on this issue

VaiTon commented 1 month ago

@openfoodfacts/openfoodfacts-server can this be done via the API?

benbenben2 commented 1 month ago

If you remove all the texts and all the pictures for a given language. And as long as this language is not the main language for the product. Then, it should remove that language.

EDIT: I am talking about open food facts on the web, when you edit product

github-throwaway commented 3 weeks ago

Something that might be interesting is transferring content to a different language. Often product have the wrong language associated with them. Eg Greek but the ingredient list is actually in French.

github-throwaway commented 3 weeks ago

Maybe clicking the cross could perform all these steps:

If you remove all the texts and all the pictures for a given language. And as long as this language is not the main language for the product. Then, it should remove that language.