Disable all translations except English for Beta. Closes #4398

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2018-05-24 13:17:06 +02:00
parent 31c905daa7
commit 184fb1d612
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 82 additions and 81 deletions

View File

@ -64,8 +64,7 @@
(set! (.-defaultSeparator rn-dependencies/i18n) "/")
;; translations
(def translations-by-locale {:af af/translations
#_(def translations-by-locale {:af af/translations
:ar ar/translations
:be be/translations
:cs cs/translations
@ -124,6 +123,7 @@
:zh-hant-mo zh-hant/translations
:zh-wuu zh-wuu/translations
:zh-yue zh-yue/translations})
(def translations-by-locale {:en en/translations}) ; Temporarily disable all languages except English
;; english as source of truth
(def labels (set (keys en/translations)))
@ -266,7 +266,7 @@
(spec/def ::locales (spec/coll-of ::locale :kind set? :into #{}))
;; NOTE: Add new locale keywords here to indicate support for them.
(def supported-locales (spec/assert ::locales #{:fr
#_(def supported-locales (spec/assert ::locales #{:fr
:zh
:zh-hans
:zh-hans-cn
@ -287,6 +287,7 @@
:sv
:ja
:uk}))
(def supported-locales (spec/assert ::locales #{:en}))
(spec/def ::supported-locale supported-locales)
(spec/def ::supported-locales (spec/coll-of ::supported-locale :kind set? :into #{}))