The Homebrew homepage
The brew.sh webpage uses Jekyll and has a template for the index at _layouts/index.html
. The webpage also supports translations through GitHub Pull Requests.
_layouts/index.html
.To add a new translation to the webpage, follow these steps:
index_fr.html
to index_{langcode}.html
and update the lang
and permalink
values._data/locales/en.yml
to _data/locales/{langcode}.yml
and update its initial language code.bundle install
and bundler exec jekyll serve
to see the translated webpage.The brew.sh webpage uses Jekyll as its static site generator and has a template for the index page. It also supports translations for different languages through GitHub Pull Requests. To add a new translation, specific steps need to be followed, including copying the necessary files and updating language codes and strings. By running bundle install
and bundler exec jekyll serve
, the translated webpage can be viewed at http://localhost:4000/.