i18n_subsites plugin released

Pelican supports article and page translations since version 2.6. However, this functionality does not include translations of themes or the site name, something many have asked for.

The new i18n_subsites plugin makes it simple to:

  • override settings for each language, e.g. SITENAME or MENUITEMS
  • translate and localize themes using jinja2.ext.i18n
  • automatically create translated subsites like http://example.com/fr/

It is available in the Pelican plugin repository.

A demo site has been put up to showcase the plugin. You can use the sources for the site as a reference for using the plugin in your own site.

Althoug this plugin has been tested, it is quite possible that you will find some bugs or incovenient behavior as it is very new. Do not hesitate to file an issue!

Finally, I would like to thank the Pelican developers for implementing and designing Pelican so well that making this plugin was straightforward, fast and fun.

links

social