From b5d5ffff1f99710a4f657d6f18635d0b52e0a4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Derenb=C3=A4ck?= Date: Tue, 17 Jan 2023 21:19:33 +0100 Subject: [PATCH] Add English and Swedish --- MMM-YrNow.js | 2 ++ translations/en.json | 7 +++++++ translations/se.json | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 translations/en.json create mode 100644 translations/se.json diff --git a/MMM-YrNow.js b/MMM-YrNow.js index 1f37c37..5c5c3a7 100644 --- a/MMM-YrNow.js +++ b/MMM-YrNow.js @@ -6,7 +6,9 @@ Module.register('MMM-YrNow', { getTranslations: function() { return { + en: "translations/en.json", no: "translations/no.json", + se: "translations/se.json", } }, diff --git a/translations/en.json b/translations/en.json new file mode 100644 index 0000000..7e27872 --- /dev/null +++ b/translations/en.json @@ -0,0 +1,7 @@ +{ + "no_precip_next_90": "No precipitation next 90 min", + "precip_in": "Precipitation in %d min", + "precip_next_90": "Precipitation nearest 90 min", + "precipitation_ends": "Precipitation ends in %d min", + "loading": "Loading..." +} \ No newline at end of file diff --git a/translations/se.json b/translations/se.json new file mode 100644 index 0000000..edfa062 --- /dev/null +++ b/translations/se.json @@ -0,0 +1,7 @@ +{ + "no_precip_next_90": "Uppehåll närmaste 90 min", + "precip_in": "Nederbörd om %d min", + "precip_next_90": "Nederbörd närmaste 90 min", + "precipitation_ends": "Uppehåll om %d min", + "loading": "Laddar..." +} \ No newline at end of file