freeCodeCamp / news

freeCodeCamp's JAMstack Developer News publication. Built with 11ty, Ghost, and help from kind contributors like you.
https://freecodecamp.org/news
BSD 3-Clause "New" or "Revised" License
57 stars 40 forks source link

Listing the translated versions of each article on news. #571

Open ahmaxed opened 1 year ago

ahmaxed commented 1 year ago

Is your feature request related to a problem? Please describe.

Based on a discussion with a few of our language Leads, It would be great to have a list of translated versions of each article to increase awareness to our i18n efforts and allow users to read articles in their preferred language.

Describe the solution you'd like

A similar feature could be found on wikipedia:

Screen Shot 2022-11-15 at 10 55 42 AM

Describe alternatives you've considered

I'm tagging @scissorsneedfoodtoo so we could discuss the feasibility of such feature.

Additional context

No response

scissorsneedfoodtoo commented 1 year ago

Hey @ahmadabdolsaheb, thanks for your patience.

I haven't had a whole lot of time to think about this, but it should be possible to build this feature. Then editors could manage it manually, or we could try to automate most of it during the build process.

Off the top of my head, we could set up either a remote database (Mongo Atlas or something similar), or even a Dockerized DB if automated.

Then if we want to automate the process, we could use the original author / translator feature to update a record for the English article during the build. Then when the English build is triggered, we could query the DB for each article and build a dropdown if there are any translations.

Or if we want this to be a more manual process, we could hook the DB up to something like Retool, then build a simple form editors can fill out. They could enter in info for the English article and the translated version (translated article slug, and so on).

Then when the builds are triggered we could see the translated version of each article to build a dropdown. We could also use this manual form for the original article / translator info, too.

There are a few ways we can handle all this, so I think it might be worth discussing it with the i18n team to see what they're able to do, and if they have any feature requests.

ahmaxed commented 1 year ago

@RafaelDavisH, I was wondering if you could discuss this with the i18n team and get back to us the the team's preferences?

BalanaguYashwanth commented 1 year ago

Hello @ahmadabdolsaheb,

What's the status of team preference and any updates for this ticket ?

ahmaxed commented 1 year ago

I believe @scissorsneedfoodtoo is double checking the requirements with the i18n team.

scissorsneedfoodtoo commented 1 year ago

Thanks for your interest in helping with this @BalanaguYashwanth.

However, I believe this is something we'll need to handle internally. We have a couple of team members working on a database that will eventually allow us to list translated versions for each article, but we don't have an official timeline for the db or this feature at the moment.

BalanaguYashwanth commented 1 year ago

so make this ticket only visible for internal team

a2937 commented 3 weeks ago

I have two questions.

Do we have articles that are translated to other languages? Number two, can I have more information about how our translated articles are routed?