Custom translations in Eleventy with filters

I was working on a multi-language Eleventy site and I realised that configuring the translations from scratch (by writing a custom filter) would be easier than choosing an existing library. This is a very bare-bones implementation that doesn’t support pluralization or interpolation, but it was enough for my site. In .eleventy.js : // set up the official EleventyI18nPlugin import {…