Outputting the locale
I can't seem to output the locale value in any of my pages. I can see the value in my Debug output as locale: "de|en" however {{locale}} outputs no value in the template.
Any Ideas what I've missed?
The page structure:
pages/ ├── de │ ├── about │ │ └── index_de.md │ ├── courses │ │ └── 1 │ │ └── index_de.md │ ├── glossary │ │ └── index_de.md │ ├── index.md │ └── privacy-and-cookies │ └── index_de.md ├── en │ ├── about │ │ └── index.md │ ├── courses │ │ └── 1 │ │ └── index.md │ ├── glossary │ │ └── index.md │ └── privacy-and-cookies │ └── index.md └── index_en.md
The CLI configuration:
'metalsmith-multi-language': { default: 'en', locales: ['en', 'de'] }
I also have this issue.
{{ locale }} works for me...
Ahh! Here's why. I am using a humble fork of mine, https://github.com/vale981/metalsmith-multi-language
Metalsmith seems kinda dead to me...