- Install dependencies:
- Start a local server:
bundle exec jekyll serve
Open a browser to localhost:8080
Add your city
I18n (internationalization) is made available with the jekyll-multiple-languages-plugin. When a page has a translated version available, a link will show up on the top right if you use the default_translate layout. English is the default language, while other languages have their two letter ISO code prefixed, for example TechWorkersCoalition.org/ru for Russian.
Adding new language
- Add new language key to en.yml
- Add two letter iso code in config. The order here determines the order shown on the page. English must be first.
- Inside the i18n directory create a
LANGUAGE/(where LANGUAGE is two letter ISO code for that language)
LANGUAGE.ymlwith the language key and value in its own language, for example
Note, only the default en.yml must contain the names of each language. The other language yml files contain just their own language key.
Each translation file, should have same version as other languages. Sometimes that is not possible, and having different versions, helps document the disparities. For example, a new city is added, but no translation is provided in Russian yet.
- Landing Page (home.html in each Language directory)