Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to translate tour.gleam and code comments #107

Open
Pi-Cla opened this issue May 31, 2024 · 1 comment
Open

How to translate tour.gleam and code comments #107

Pi-Cla opened this issue May 31, 2024 · 1 comment

Comments

@Pi-Cla
Copy link

Pi-Cla commented May 31, 2024

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
Copy link
Member

lpil commented Jun 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants