Skip to content

Commit

Permalink
Hasan/DPROD-2159/live market card tarnslation fix (binary-com#6473)
Browse files Browse the repository at this point in the history
* auto-pull-translation

* chore: added live market localize content
  • Loading branch information
hasan-deriv authored Jan 10, 2024
1 parent 8788521 commit 421fbcb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
4 changes: 3 additions & 1 deletion crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,7 @@
"1345965490": "- lower than the entry price for a Reset Call contract, or",
"1346204508": "Take profit",
"1349080073": "Please enter only alphabetic characters",
"1349233664": "Ask",
"1351421019": "Where can I trade Asian options?",
"1353732907": "Refers to the currency pair or other product that can be traded.",
"1354275546": "Hassle-free deposits and withdrawals",
Expand Down Expand Up @@ -2084,6 +2085,7 @@
"1923836405": "Must be exactly 8 characters",
"1923984982": "Flagship options, accumulators, & multipliers trading platform.",
"1924997360": "[ { 10",
"1925182739": "Bid",
"1925717346": "The point value is derivied from the current digits of the asset. In this example, the digit is 5, so the point value is 0.00001.",
"1926519171": "Limit the amount of money you may trade within a specified period.",
"1928776934": "Active traders",
Expand Down Expand Up @@ -3219,6 +3221,7 @@
"-59312670": "10+ global payment methods. Deposit instantly starting from just USD 10. Withdraw in minutes.*",
"-1753424574": "Best forex spreads APAC 2023 by UF Awards",
"-573436898": "Trading for anyone. Anywhere. Anytime.",
"-137444201": "Buy",
"-1884823136": "Top trading assets & unique market indices",
"-1971867782": "See all forex pairs",
"-1342250828": "<0>Virtual markets, real opportunities.</0> Trade simulated markets, as volatile as you like.",
Expand Down Expand Up @@ -4576,7 +4579,6 @@
"-1145023404": "<0>280,000</0>",
"-195404006": "Take profit pip value",
"-1659122470": "Our profit and loss calculator for margin helps you to approximate your losses and/or gains.",
"-137444201": "Buy",
"-213618448": "Stop loss pips",
"-544680075": "Take profit pips",
"-805098509": "Open price of asset",
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dependencies": {
"@artsy/fresnel": "^6.2.1",
"@builder.io/partytown": "^0.8.1",
"@deriv-com/blocks": "^0.66.0",
"@deriv-com/components": "^0.37.0",
"@deriv-com/blocks": "^0.70.0",
"@deriv-com/components": "^0.41.0",
"@deriv-com/hooks": "^0.10.0",
"@deriv-com/providers": "^0.10.0",
"@deriv/analytics": "^1.4.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { percentToDecimal, swiperOption } from '../utils'
import { handleRedirectToTradersHub } from 'components/custom/utils'
import useAuthCheck from 'components/hooks/use-auth-check'
import useHandleSignup from 'components/hooks/use-handle-signup'
import { Localize } from 'components/localization'

const IconsMapper = {
AUDUSD: <MarketForexAudusdIcon />,
Expand Down Expand Up @@ -67,8 +68,14 @@ const LiveMarketCard = <T extends MarketName>({
bidPrice: `${data[key].bid}`,
askPrice: `${data[key].ask}`,
spread: `${data[key].sprd}`,
mid: data[key].mid,
onClickBuyButton: is_logged_in ? handleRedirectToTradersHub : handleSignup,
onClickSellButton: is_logged_in ? handleRedirectToTradersHub : handleSignup,
bidContent: <Localize translate_text="_t_Bid_t_" />,
askContent: <Localize translate_text="_t_Ask_t_" />,
spreadContent: <Localize translate_text="_t_Spread_t_" />,
buyContent: <Localize translate_text="_t_Buy_t_" />,
sellContent: <Localize translate_text="_t_Sell_t_" />,
}))
}, [data, is_logged_in, handleSignup])

Expand Down

0 comments on commit 421fbcb

Please sign in to comment.