Skip to content

Commit

Permalink
[9853] add missing translatable labels
Browse files Browse the repository at this point in the history
Signed-off-by: yenda <eric@status.im>
  • Loading branch information
yenda committed Jan 27, 2020
1 parent a8c3937 commit 81d2c35
Show file tree
Hide file tree
Showing 3 changed files with 1,164 additions and 1,157 deletions.
15 changes: 8 additions & 7 deletions src/status_im/ui/screens/wallet/add_new/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
[list-item/list-item
{:type :section-header
:container-margin-top 24
:title "Advanced"}]
:title (i18n/label :t/advanced)}]
[list-item/list-item
{:title "Enter a seed phrase"
{:title (i18n/label :t/enter-a-seed-phrase)
:theme :action
:icon :main-icons/add
:accessories [:chevron]
:disabled? true
:on-press #(re-frame/dispatch [:wallet.accounts/start-adding-new-account {:type :seed}])}]
[list-item/list-item
{:title "Enter a private key"
{:title (i18n/label :t/enter-a-private-key)
:theme :action
:icon :main-icons/add
:accessories [:chevron]
Expand All @@ -69,20 +69,21 @@
:justify-content :space-between
:align-items :center :margin-horizontal 16}
[react/view
[react/text {:style {:typography :header :margin-top 16}} "Add a watch-only address"]
[react/text {:style {:typography :header :margin-top 16}}
(i18n/label :t/add-a-watch-account)]
[react/text {:style {:color colors/gray :text-align :center :margin-vertical 16}}
"Enter the address to watch"]]
(i18n/label :t/enter-watch-account-address)]]
[react/view {:align-items :center :flex 1 :flex-direction :row}
[react/text-input {:auto-focus true
:multiline true
:text-align :center
:placeholder "Enter address"
:placeholder (i18n/label :t/enter-address)
:style {:typography :header :flex 1}
:on-change-text #(re-frame/dispatch [:set-in [:add-account :address] %])}]]]
[toolbar/toolbar
{:show-border? true
:right {:type :next
:label "Next"
:label (i18n/label :t/next)
:on-press #(re-frame/dispatch [:wallet.accounts/add-watch-account])
:disabled? add-account-disabled?}}]]))

Expand Down
4 changes: 2 additions & 2 deletions src/status_im/ui/screens/wallet/components/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
{:multiline true
:container {:margin 16 :padding-vertical 16 :height 72}
:style {:text-align-vertical :top :height 42}
:placeholder "0x... or username.domain.eth" ;(i18n/label :t/recipient-code)
:placeholder (i18n/label :t/recipient-code-placeholder)
:on-change-text #(reset! content %)
:accessibility-label :recipient-address-input}]
[react/text {:style {:color colors/gray :margin-horizontal 16}}
"Enter address or username of the recepient"]]]))
(i18n/label :t/enter-recipient-address-or-username)]]]))
Loading

0 comments on commit 81d2c35

Please sign in to comment.