gleam-lang / language-tour

👩🏽‍💻 Learn Gleam in your browser
https://tour.gleam.run/
73 stars 54 forks source link

How to translate tour.gleam and code comments #107

Open Pi-Cla opened 1 month ago

Pi-Cla commented 1 month ago

While the files in src/content/ have en.htmls which can be translated to other languages. How should the hard coded lines in tour.gleam be translated?

Also some of the code examples contain code comments which should be translated as well. I think we can just rename the code.gleams to en.gleams and then any code which contains comments can be copied for the target language.

lpil commented 1 month ago

Yes I have been wondering this. I would like to avoid having N copies of the code, but I'm not sure what's best. Maybe there's some translations syntax we could use in the comments