Skip to content

Commit

Permalink
update Italian, Arabic, Spanish(LatAm), Chinese and Korean
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
  • Loading branch information
jinhojang6 authored and flexsurfer committed Jan 30, 2020
1 parent 6ff878c commit 58afae0
Show file tree
Hide file tree
Showing 6 changed files with 1,068 additions and 326 deletions.
7 changes: 5 additions & 2 deletions prod/status_im/i18n_resources.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns status-im.i18n-resources
(:require [status-im.react-native.js-dependencies :as rn-dependencies]))
(:require [status-im.react-native.js-dependencies :as rn-dependencies]
[clojure.string :as string]))

(def default-device-language
(keyword (.-language rn-dependencies/react-native-languages)))
Expand Down Expand Up @@ -78,7 +79,9 @@
{:en (require-translation :en)}
(not= :en default-device-language)
(assoc default-device-language
(require-translation default-device-language))))
(require-translation (-> (name default-device-language)
(string/replace "-" "_")
keyword)))))

(defn load-language [lang]
(let [lang-key (valid-language (keyword lang))]
Expand Down
Loading

0 comments on commit 58afae0

Please sign in to comment.