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

Multilingual support #60

Closed
findmyway opened this issue Mar 12, 2021 · 7 comments
Closed

Multilingual support #60

findmyway opened this issue Mar 12, 2021 · 7 comments

Comments

@findmyway
Copy link
Member

Let's say I want to work on a little book which supports two languages (en_us, zh_cn). I can create two configs but it seems they share the same index.md, right? How about making it configurable?

@rikhuijzer
Copy link
Collaborator

rikhuijzer commented Mar 12, 2021

Are you using different projects to distinguish the languages? That is a nice way

I think the most neat solution would then be to add a index_file setting to config.toml. Would that work for you? That's a reasonably easy addition. Let me know whether that works for you and I'll get it into the package in at most a week.

@rikhuijzer
Copy link
Collaborator

I just realized that you still would need a landing page of some sorts from which users can choose which language they want to see, right? Although you can change projects quite easily on localhost, I haven't really thought about how to show multiple projects at the static website, but I'm open for supporting that.

@findmyway
Copy link
Member Author

I just realized that you still would need a landing page of some sorts from which users can choose which language they want to see, right?

Yeah, after thinking for a while. I agree that I still need a landing page here.

I haven't really thought about how to show multiple projects at the static website

My current plan is to host different versions under different paths (mysite.com/en, mysite.com/cn). #49 may be needed.

Anyway, I think we can keep things as it is now. ❤️

@rikhuijzer
Copy link
Collaborator

More people want this: https://discourse.julialang.org/t/how-about-a-great-hand-note-type-of-a-static-site-for-julia/57177, so I'll reopen the issue.

@rikhuijzer rikhuijzer reopened this Mar 15, 2021
@rikhuijzer rikhuijzer changed the title [Discussion] Do not take index.md as a special case? Multilingual support Mar 15, 2021
@rikhuijzer
Copy link
Collaborator

@findmyway, can I add your project at https://github.com/LearnJuliaTheFunWay/JuliaDevelopersToolkit as an example for this issue? I'll add it to the documentation too then. It's a perfect example for a simple site which is built in two languages.

@findmyway
Copy link
Member Author

Cool!

I'd prefer to add https://github.com/LearnJuliaTheFunWay/LearnJuliaTheFunWay.jl instead since I'll mainly work on it from now on. (Original code in JuliaDevelopersToolkit were moved into it)

@rikhuijzer
Copy link
Collaborator

Thanks!

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