Add multilingual functionality to the site #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds i18n functionality to the site, allowing the user to switch between languages. I google-translated the site content in some places to start it off.
I also changed the default language away from English. The way I see it, if DH is too English-centric, why not set a good example by avoiding anglocentrism on the website, too? I changed it to Esperanto, the most commonly spoken neutral language, so as to avoid implicitly privileging any particular national language. This is an unusual choice, but I think you'll agree that it's a bold statement that critiques the dominance of the English language on the Internet.
The theme has some changes, because the Jekyll theme that was there previously didn't play nicely with this setup. But that's a good thing, since the codebase is now much smaller, and the site is much more maintainable. This is easy to change, though—for instance, with a drop-in CSS framework like Bulma. Or better yet, just by adding a couple of lines of style to the SASS.
Let me know what you think! You can preview this PR at https://jonathanreeve.github.io/multilingual-dh.github.io/.