openfoodfacts / open-prices

An open database of food prices - 🧾💸💰🏷️🤑🍽️
GNU Affero General Public License v3.0
27 stars 8 forks source link

Translate landing page #184

Open raphodn opened 5 months ago

raphodn commented 5 months ago

Story

Currently the landing page is available in only 2 languages :

Help

See this PR - https://github.com/openfoodfacts/open-prices/pull/155 - for an example (French translation).

raphodn commented 5 months ago

@Apurv428

Can we make the translation of the landing page by using libraries or Google Translate? This way, we can cover various languages that users might use. Instead of creating separate folders, like it's done in this https://github.com/openfoodfacts/open-prices/pull/155, can we explore the above approach?

What would be your approach ? You're right that there's some duplicated code like the <head>

Apurv428 commented 5 months ago

I'm considering using Google Translate and incorporating the languages we need, or if necessary, incorporating all the languages it offers.

Apurv428 commented 5 months ago

Could you please provide guidance and insights on this issue mentioned? @raphodn

raphodn commented 5 months ago

@Apurv428 what language do you want to translate to ? A simple PR would be to "duplicate" #155 but for another language.

Apurv428 commented 5 months ago

@raphodn I wasn't considering a specific language. Instead, I was contemplating the incorporation of a feature that enables the translation of the website into any language the user might prefer.

raphodn commented 5 months ago

I see, we could leverage https://translate.openfoodfacts.org which is the crowdsourced plateform to translate Open Food Facts content. But I'm not sure how to integrate it. Maybe move the landing page to the frontend app ? @raphael0202

raphodn commented 4 months ago

Frontend issue to migrate the landing page(s) there : https://github.com/openfoodfacts/open-prices-frontend/issues/364