From 42aa983fe4dc4782893088b1c7d9ec6882cc8a67 Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Sat, 01 Aug 2020 08:53:03 +0000
Subject: [PATCH] 🚩 Support for multiple languages

---
 README.md |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md
index ae3fd56..9478113 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@
 - Dark mode
 - Navigation items
 - Pagination
+- Multilingual
 - 100⁄100 Google Lighthouse score
 - Google Analytics (optional)
 - Comments powered by Disqus (optional)
@@ -83,6 +84,42 @@
   identifier = "about"
   url = "/about/"
 ```
+### Multilingual support
+Anatole supports multilingual page setups. All you need to do is to add the languages to your 'config.toml'. For each Language you can set the custom options like title or description. It's important to include a `LanguageName`, as it will be displayed in the main menu.  
+```toml
+[Languages]
+  [Languages.en]
+  title = "My blog"
+  weight = 1
+  LanguageName = "EN"
+
+  [Languages.de]
+  title = "Mein blog"
+  description = "Ich bin Jane"
+  weight = 2
+  LanguageName = "DE"
+```
+To make sure your menu is linking to the correct localized content, make sure that you customize the menu items to inlude the language prefix. Your menu might look like the following:
+```toml
+[[Languages.de.menu.main]]
+url    = "/de/"
+identifier = "home"
+name   = "Startseite"
+weight = 100
+
+[[Languages.de.menu.main]]
+name = "Beiträge"
+weight = 200
+identifier = "posts"
+url = "/de/post/"
+
+[[Languages.de.menu.main]]
+name = "Über"
+weight = 300
+identifier = "about"
+url = "/de/about/"
+```
+Anatole currently ships with support for some basic languages. Contributions for other language translations are welcome.
 ### :100: Google Lighthouse score
 The theme is optimized to adhere to the requirements checked for in the Lighthouse Audit. On my [personal site](https://www.alexbilz.com) I was able to reach a perfect 100⁄100 score.
 ![Google Lighthouse Score](https://raw.githubusercontent.com/lxndrblz/anatole/master/images/lighthouse.png)

--
Gitblit v1.10.0