Testing Eleventy multilingual capabilities following these two posts:
- default locale (
netlify.toml
redirect backed up by HTML redirect) - localised collections
- locales managed using directory data files
- date filters taking locales into account
- language switcher based on a
translationKey
set in YAML front matters (falls back to the locale's homepage if there is no corresponding page another locale)
- clone repository
- install node and npm
- run
npm i
- run
npm run build
to build the project - run
npm run dev
to spin up a dev server