Language switcher #63
Replies: 1 comment 2 replies
-
@james-l-smith toggling between multiple languages it is not super easy... but is possible. How hard it is depends on how much of the UI you want to swap out for each language (e.g. the main nav, the titles, the metadata display names, the metadata fields, etc). There are a number of different approaches used in static sites, so how you implement it would depend on your goals and requirements. That said, we are interested in getting it to work and @owikle has been developing an approach in cb-multilingual to test ideas using JS to swap everything out. It is still drafty, but might give you an idea of what it could look like. If your collection is more static, another option is essentially setting up parallel versions for each language, basically like translating CB into another language, so you would have a full config for each, and building them out in parallel. The different languages would be switched using the url (e.g. /en/subjects.html vs /es/subject.html). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I was wondering how easy it would be to toggle languages. I saw the instructions for changing language in config.yml, but is there a way to move between e.g. config files in two languages?
Beta Was this translation helpful? Give feedback.
All reactions