From 390e5d64905837e18a97ba8424b3b877057a85d2 Mon Sep 17 00:00:00 2001 From: Veeck Date: Mon, 20 Feb 2023 20:03:42 +0100 Subject: [PATCH] Update thai language (#3044) actually add it to the tanslation list and also add the alert translations from https://github.com/MichMich/MagicMirror/pull/3029 since the OP didnt seem to work on it (yet) --------- Co-authored-by: veeck Co-authored-by: Suthep Yonphimai --- .github/codecov.yaml | 1 + CHANGELOG.md | 1 + modules/default/alert/alert.js | 3 ++- modules/default/alert/translations/th.json | 4 ++++ translations/translations.js | 3 ++- 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 modules/default/alert/translations/th.json diff --git a/.github/codecov.yaml b/.github/codecov.yaml index 9edb9fa6..3c734375 100644 --- a/.github/codecov.yaml +++ b/.github/codecov.yaml @@ -7,3 +7,4 @@ coverage: patch: default: threshold: 0% + target: 0 diff --git a/CHANGELOG.md b/CHANGELOG.md index e4d183fe..88f58754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ _This release is scheduled to be released on 2023-04-01._ - Added possibility to use your own templates in Alert module - Added error message if `.js` file is missing in module folder to get a hint in the logs (#2403) - Added possibility to use environment variables in `config.js` (#1756) +- Added thai language to alert module ### Removed diff --git a/modules/default/alert/alert.js b/modules/default/alert/alert.js index c2a68f75..d1f42c81 100644 --- a/modules/default/alert/alert.js +++ b/modules/default/alert/alert.js @@ -35,7 +35,8 @@ Module.register("alert", { fr: "translations/fr.json", hu: "translations/hu.json", nl: "translations/nl.json", - ru: "translations/ru.json" + ru: "translations/ru.json", + th: "translations/th.json" }; }, diff --git a/modules/default/alert/translations/th.json b/modules/default/alert/translations/th.json new file mode 100644 index 00000000..a1894bf3 --- /dev/null +++ b/modules/default/alert/translations/th.json @@ -0,0 +1,4 @@ +{ + "sysTitle": "การแจ้งเตือน MagicMirror²", + "welcome": "ยินดีต้อนรับ การเริ่มต้นสำเร็จแล้ว!" +} diff --git a/translations/translations.js b/translations/translations.js index 0be9ebde..f3b2d2c1 100644 --- a/translations/translations.js +++ b/translations/translations.js @@ -48,7 +48,8 @@ let translations = { hi: "translations/hi.json", // Hindi gu: "translations/gu.json", // Gujarati gl: "translations/gl.json", // Galego - lt: "translations/lt.json" // Lithuanian + lt: "translations/lt.json", // Lithuanian + th: "translations/th.json" // Thai }; if (typeof module !== "undefined") {