From aacfea40a4b7b7058af04db6710cbe348c9a921f Mon Sep 17 00:00:00 2001 From: TofuLin Date: Sun, 4 Dec 2016 17:40:45 +0800 Subject: [PATCH 1/6] Create zh.json Translations for the json file. --- zh.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 zh.json diff --git a/zh.json b/zh.json new file mode 100644 index 0000000..29bdd97 --- /dev/null +++ b/zh.json @@ -0,0 +1,5 @@ +{ + "message": "你好 %person, 很高興看到你!", + "title": "臉部識別", + "stranger": "陌生人" +} From e200b5886b30aa7adec929f65c52306a4fd8f1ab Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Sun, 18 Dec 2016 14:37:15 +0100 Subject: [PATCH 2/6] Relocated zh-translation. --- zh.json => translations/zh.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename zh.json => translations/zh.json (100%) diff --git a/zh.json b/translations/zh.json similarity index 100% rename from zh.json rename to translations/zh.json From 5f48f8e94586d6a8e331c2cb87eaec7cabdaec33 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 Jan 2017 23:29:09 +0100 Subject: [PATCH 3/6] Create nl.json --- translations/nl.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 translations/nl.json diff --git a/translations/nl.json b/translations/nl.json new file mode 100644 index 0000000..cfbe39c --- /dev/null +++ b/translations/nl.json @@ -0,0 +1,5 @@ +{ + "message": "Hallo %person, goed je te zien!", + "title": "Gezichtsherkenning", + "stranger": "vreemde" +} From fc9878615e19106a82c3ea08de60f6e838041ba2 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 Jan 2017 23:30:10 +0100 Subject: [PATCH 4/6] Add translation Add nl to the array --- MMM-Facial-Recognition.js | 1 + 1 file changed, 1 insertion(+) diff --git a/MMM-Facial-Recognition.js b/MMM-Facial-Recognition.js index 1acac95..927a39c 100644 --- a/MMM-Facial-Recognition.js +++ b/MMM-Facial-Recognition.js @@ -41,6 +41,7 @@ Module.register('MMM-Facial-Recognition',{ return { en: "translations/en.json", de: "translations/de.json", + nl: "translations/nl.json", fr: "translations/fr.json" }; }, From badd43e4e58be7dbf7ce1b4f640868d640840809 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 Jan 2017 23:34:54 +0100 Subject: [PATCH 5/6] Add missing translations --- MMM-Facial-Recognition.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MMM-Facial-Recognition.js b/MMM-Facial-Recognition.js index 1acac95..386553a 100644 --- a/MMM-Facial-Recognition.js +++ b/MMM-Facial-Recognition.js @@ -41,6 +41,8 @@ Module.register('MMM-Facial-Recognition',{ return { en: "translations/en.json", de: "translations/de.json", + es: "translations/es.json", + zh: "translations/zh.json", fr: "translations/fr.json" }; }, From 937a8e9cdc593825a7eaf7eaa137ddd496cca1bb Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Thu, 12 Jan 2017 23:41:10 +0100 Subject: [PATCH 6/6] getTranslations formatting fix --- MMM-Facial-Recognition.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MMM-Facial-Recognition.js b/MMM-Facial-Recognition.js index 2f6cf24..b975d80 100644 --- a/MMM-Facial-Recognition.js +++ b/MMM-Facial-Recognition.js @@ -41,9 +41,9 @@ Module.register('MMM-Facial-Recognition',{ return { en: "translations/en.json", de: "translations/de.json", - es: "translations/es.json", - zh: "translations/zh.json", - nl: "translations/nl.json", + es: "translations/es.json", + zh: "translations/zh.json", + nl: "translations/nl.json", fr: "translations/fr.json" }; },