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…
Reference in New Issue