~bzg/dev

choices: Add Swedish to UI v1 APPLIED

~ainali: 1
 Add Swedish to UI

 3 files changed, 15 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bzg/dev/patches/46315/mbox | git am -3
Learn more about email & git

[PATCH choices] Add Swedish to UI Export this patch

From: Ainali <ainali.jan@gmail.com>

---
 config-example.yml         |  2 +-
 src/cljs/choices/i18n.cljs | 12 ++++++++++++
 test/choices/test.clj      |  3 ++-
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/config-example.yml b/config-example.yml
index 19f3e77..c5959c5 100644
--- a/config-example.yml
+++ b/config-example.yml
@@ -1,5 +1,5 @@
# Default locale for UI strings
# Available UI languages: en, fr, de
# Available UI languages: en, fr, de, sv
locale: "en"

# Available themes: bulma, chota, dsfr
diff --git a/src/cljs/choices/i18n.cljs b/src/cljs/choices/i18n.cljs
index 6a517c8..4262c40 100644
--- a/src/cljs/choices/i18n.cljs
+++ b/src/cljs/choices/i18n.cljs
@@ -41,4 +41,16 @@
    :contact-intro        "Kontakt: "
    :toggle-summary-style "Den Stil der Zusammenfassung ändern"
    :attention            "Achtung"}
   :sv
   {:display-help         "Visa hjälp"
    :copy-to-clipboard    "Kopiera till urklipp"
    :mail-to-message      "Skicka med e-post"
    :mail-subject         "Resultat"
    :mail-body            "Hej,\n%s\nTack."
    :mail-body-default    "Här är min återkoppling:\n"
    :redo                 "Redo"
    :ok                   "Okej"
    :contact-intro        "Kontakt: "
    :toggle-summary-style "Växla sammanfattningsstil"
    :attention            "Observera"}
   })
diff --git a/test/choices/test.clj b/test/choices/test.clj
index 8935d18..2480730 100644
--- a/test/choices/test.clj
+++ b/test/choices/test.clj
@@ -67,7 +67,8 @@
(deftest ui
  (testing "Testing UI variables"
    (is (or (= (:locale config) "en")
            (= (:locale config) "fr")))
            (= (:locale config) "fr")
            (= (:locale config) "sv")))
    (is (nilable-map? (:ui-strings config)))
    (is (nilable-email? (:mail-to config)))
    (is (boolean? (:display-summary config)))
-- 
2.38.5
Applied, thanks a lot!