coopdevs / coopdevs-old-web

coopdevs.org content
http://coopdevs.org
2 stars 10 forks source link

add i18n capability #2

Open sseerrggii opened 6 years ago

sseerrggii commented 6 years ago

We need a way to keep the selected language in all the page

We probably will do articles in different languages and we want search engines index it properly with html lang atribute

sauloperez commented 5 years ago

What do you want to do here exactly @sseerrggii ? AFAIK keeping the selected language across pages is about using the right locale in the link, meaning that blog should point to /ca/blog I guess.

Then, that thing about search engines is something different. Am I right?

This is a good candidate for the Hacktoberfest as well.

sseerrggii commented 5 years ago

We publish post in three different languages but for the moment we don't translate posts to this three languages. I think for the moment we don't need something like /ca/blog

We can start to define some metadata like "Post language" in Post and use this information to change html lang

sauloperez commented 5 years ago

With the changes done in https://github.com/coopdevs/coopdevs.github.io/pull/31, we have two versions of the blog post for each language: Catalan and Spanish.

If I understood correctly you want instead to show the appropriate lang depending on the post contents, right?

enricostano commented 4 years ago

@sseerrggii is this issue still valid?