 (ns just-married.home.gift
   (:require [just-married.home.language :refer [translate]]
-            [clojure.string :as string]))
+            [clojure.string :as string]
+            [goog.string :as gstring]))
 
 (def LANGUAGE-TO-CURRENCY
   {:en "gbp"

   (into [:tr]
         (for [f fields]
           [:th (-> f name string/upper-case)]))
   (into [:tr]
         (for [f fields]
           [:td (-> coordinates key f)]))])

(into [:th]
      (for [f [1 2 3]]
        [:td f]))

(defn gift
  []

  {:eur {:name "Andrea Crotti"
         :iban "DE70100110012629402677"}

   :gbp {:name "Andrea Crotti"
         :iban "GB19ABBY09012921859069"
         :number "21859069"
         :sort-code "09-01-29"}})

(def gift-dict
  {:en {:gift   "Your company in this special day will be the greatest gift. If you would like to contribute to our Honeymoon at the Seychelles you can do use these bank coordinates:"
        :pounds "British Pounds"}

   :it {:gift   "La vostra presenza in questo giorno speciale sarà il regalo più importante.
Se vorrete contribuire al nostro viaggio di nozze alle Seychelles potrete farlo usando queste coordinate bancarie:"
        :pounds "Sterline"}})

(def ^:private tr
  (partial translate gift-dict))
