Testing “Jekyll Lesezeit” in English
Open this article to see the live demo in English and how to deploy the script.
Use Case #1
You want Lesezeit to display information in your site language.
Set global language in config.yml
. On this site: lang: de
Don’t set language in “frontmatter” of individual pages.
--- layout: post title: The Title of Your Page date: YYYY-MM-DD HH:MM:SS categories: optional description: "Some useful description." tags: [Optional, all-up, ToYou] ---
Result: Lesezeit displays word count and reading time in site language.
Use Case #2
You want individual pages to display Lesezeit in (a) language(s) different from your site language.
Set global language in config.yml
. On this site: lang: de
Set page language in “frontmatter” of individual pages. On this page:
--- layout: post title: Testing “Jekyll Lesezeit” in English date: 2020-02-19 09:32:35 +0100 lang: en categories: fehlersuche description: "This page is for software testing in English only." tags: [Jekyll, Lesezeit, English] ---
Result: Site language remains “German” (<html lang="de">
). Page language is “English” (<html lang="en">
). Lesezeit displays English word count and reading time on this page.