fix translations for locales with underscore (like es_419)

This commit is contained in:
Roman Volosovskyi 2018-09-20 11:14:43 +03:00
parent 447ee3754a
commit a3990fe61b
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 5 additions and 1 deletions

View File

@ -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