fix translations for locales with underscore (like es_419)
This commit is contained in:
parent
447ee3754a
commit
a3990fe61b
|
@ -14,7 +14,11 @@
|
|||
;; translations
|
||||
(def translations-by-locale
|
||||
(->> (i18n/translations [:en :ko :ru :pl :es_419])
|
||||
(map (fn [[k t]] [k (types/json->clj t)]))
|
||||
(map (fn [[k t]]
|
||||
(let [k' (-> (name k)
|
||||
(string/replace "_" "-")
|
||||
keyword)]
|
||||
[k' (types/json->clj t)])))
|
||||
(into {})))
|
||||
|
||||
;; english as source of truth
|
||||
|
|
Loading…
Reference in New Issue