kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
923 stars 201 forks source link

Translating 404 Pages #156

Open rtaibah opened 4 years ago

rtaibah commented 4 years ago

I am not able to use the plugin to translate 404 pages. My 404.md page in root:

---
layout: page
title: Feeling Lost
permalink: /404.html
---

{% tf 404/404.md %}

And there are corresponding files in /i18n/en/404/404.md and /i18n/ar/404/404.md. The English (default language) 404 page gets served regardless of language.

Nowaker commented 4 years ago

Jekyll is a static site generator. You can't localize a 404 page without web server's help. There's nothing that jekyll-multiple-languages-plugin can do for this, and this ticket should be closed.