Merge branch 'develop' into appium-setup
Conflicts:
src/status_im/i18n.cljs
Former-commit-id: bf6d4ef256
This commit is contained in:
commit
04760cc549
|
@ -18,7 +18,7 @@
|
||||||
[status-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[status-im.chat.views.message :refer [chat-message]]
|
[status-im.chat.views.message :refer [chat-message]]
|
||||||
[status-im.chat.views.new-message :refer [chat-message-new]]
|
[status-im.chat.views.new-message :refer [chat-message-new]]
|
||||||
[status-im.i18n :refer [label]]))
|
[status-im.i18n :refer [label label-pluralize]]))
|
||||||
|
|
||||||
|
|
||||||
(defn contacts-by-identity [contacts]
|
(defn contacts-by-identity [contacts]
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
[icon :group st/group-icon]
|
[icon :group st/group-icon]
|
||||||
[text {:style st/members}
|
[text {:style st/members}
|
||||||
(let [cnt (inc (count @contacts))]
|
(let [cnt (inc (count @contacts))]
|
||||||
(label :t/members {:count cnt}))]]
|
(label-pluralize cnt :t/members))]]
|
||||||
;; TODO stub data: last activity
|
;; TODO stub data: last activity
|
||||||
[text {:style st/last-activity} (label :t/last-active)])])))
|
[text {:style st/last-activity} (label :t/last-active)])])))
|
||||||
|
|
||||||
|
|
|
@ -13,3 +13,9 @@
|
||||||
(if (exists? i18n.t)
|
(if (exists? i18n.t)
|
||||||
(.t i18n (name path) (clj->js options))
|
(.t i18n (name path) (clj->js options))
|
||||||
(name path)))
|
(name path)))
|
||||||
|
|
||||||
|
(defn label-pluralize [count path & options]
|
||||||
|
(if (exists? i18n.t)
|
||||||
|
(.p i18n count (name path) (clj->js options))
|
||||||
|
(name path)))
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
:and-you "and you"
|
:and-you "and you"
|
||||||
:search-chat "Search chat"
|
:search-chat "Search chat"
|
||||||
:members {:one "1 member, 1 active"
|
:members {:one "1 member, 1 active"
|
||||||
:other "{{count}} members, {{count}} active"}
|
:other "{{count}} members, {{count}} active"
|
||||||
|
:zero "no members"}
|
||||||
:last-active "Active a minute ago"
|
:last-active "Active a minute ago"
|
||||||
|
|
||||||
;profile
|
;profile
|
||||||
|
@ -70,6 +71,7 @@
|
||||||
;contacts
|
;contacts
|
||||||
:contacts "Contacts"
|
:contacts "Contacts"
|
||||||
:no-name "Noname"
|
:no-name "Noname"
|
||||||
|
:new-contact "New Contact"
|
||||||
|
|
||||||
;group-settings
|
;group-settings
|
||||||
:remove "Remove"
|
:remove "Remove"
|
||||||
|
@ -112,4 +114,9 @@
|
||||||
:removed "removed"
|
:removed "removed"
|
||||||
:You "You"
|
:You "You"
|
||||||
|
|
||||||
|
;new-contact
|
||||||
|
:import-qr "Import from QR"
|
||||||
|
:contact-name "Contact Name"
|
||||||
|
:contact-address "Contact Address"
|
||||||
|
|
||||||
})
|
})
|
|
@ -5,7 +5,6 @@
|
||||||
"Creates subscrition that cheks if collection (map or set) contains element"
|
"Creates subscrition that cheks if collection (map or set) contains element"
|
||||||
[collection]
|
[collection]
|
||||||
(fn [db [_ element]]
|
(fn [db [_ element]]
|
||||||
(println "WWWWWWWWWW" (type db))
|
|
||||||
(-> (collection @db)
|
(-> (collection @db)
|
||||||
(contains? element)
|
(contains? element)
|
||||||
(reaction))))
|
(reaction))))
|
||||||
|
|
Loading…
Reference in New Issue