From 3c95a55850347e98097e38a147edf4c0d8b688d5 Mon Sep 17 00:00:00 2001 From: jerrywham Date: Tue, 14 Dec 2021 11:38:29 +0000 Subject: [PATCH] Note for naming theme language file I added a note to specify how to name the language files so that they are taken into account by the software. --- pages/languages/translate-themes/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/languages/translate-themes/index.md b/pages/languages/translate-themes/index.md index 2690e05..98a809b 100644 --- a/pages/languages/translate-themes/index.md +++ b/pages/languages/translate-themes/index.md @@ -16,6 +16,10 @@ Each theme has a folder `languages`, inside this folder you can create the diffe
File Encoding
All dictionary files are JSON files, and are encoded in UTF-8. +
+
File Naming
+Be careful with the name of your language files. You have to name the language file of your theme the same way as the main language file in the bt-languages folder (for example: for french translation, 'fr_FR.json' and not 'fr.json', but for english 'en.json') +
This is an example of an English dictionary file (`en.json`). Each line in the `en.json` file is a key-value pair, with the key on the left and the value on the right.