DEV Community

Discussion on: Learn Code from Us: Developer Thread

Collapse
 
dotnetcoreblog profile image
Jamie • Edited

Does the site have a toggle for switching between English and Spanish? I feel like it would be a lot of work, though.

When the switch is toggled, you would have to switch out all of the translated content. Or perhaps have a subdomain (es.learncodefrom.us?) or a different domain (learncodefrom.es?) and redirect the user there perhaps.

Thread Thread
 
aspittel profile image
Ali Spittel

I love that idea! Maybe just using React-Router for filtering languages -- like learncodefrom.us/en, learncodefrom.us/es to filter by language? Then add a column to the data that stores language -- home page shows everyone, pages show filtered by language? Or we could just add another filter similar to the tag one but for language?

Thread Thread
 
dotnetcoreblog profile image
Jamie

Sounds great to me.

I have no idea when it comes to React, but it seems like a great way to implement it.