mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 08:55:39 +00:00
fix short version
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
a7c2ecda42
commit
5a955cd4d2
@ -66,7 +66,7 @@
|
||||
(defn valid-language [lang]
|
||||
(if (contains? prod-translations lang)
|
||||
lang
|
||||
(let [short-lang (keyword (subs (name lang) 0 2))]
|
||||
(let [short-lang (keyword (first (string/split (name lang) #"_")))]
|
||||
(when (contains? prod-translations short-lang)
|
||||
short-lang))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user