Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into translators
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Nov 28, 2023
2 parents 26aee6c + 9aabd45 commit cfd7bd6
Show file tree
Hide file tree
Showing 54 changed files with 318 additions and 5,449 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/generate-preview-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2

- name: Create npmrc file
shell: bash
run: echo "@deriv-com:registry=https://npm.pkg.github.com" >> .npmrc

- name: Setup install read-only token for deriv-com org
shell: bash
run: echo '//npm.pkg.github.com/:_authToken=${{ secrets.READ_DERIV_COM_ORG_PACKAGES }}' >> .npmrc

- name: Get build output from master cache
uses: actions/cache/restore@v3
with:
Expand Down Expand Up @@ -122,22 +130,22 @@ jobs:
GATSBY_RUDDERSTACK_PRODUCTION_KEY: ${{ secrets.GATSBY_RUDDERSTACK_PRODUCTION_KEY }}
GATSBY_STRAPI_TOKEN: ${{ secrets.GATSBY_STRAPI_TOKEN }}
GATSBY_GOOGLE_TAG_MANAGER_TRACKING_ID: ${{ secrets.GATSBY_GOOGLE_TAG_MANAGER_TRACKING_ID }}

run: npm run build

- name: Publish to Cloudflare Pages
id: publish-to-pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }}
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
run: |
echo "Installing Wrangler CLI"
npm i -g wrangler
echo "Deploying build to Cloudflare Pages"
directory='public'
projectName='deriv-com-preview-links'
head_branch=${{github.event.workflow_run.head_branch}}
branch=$(echo $head_branch | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/')
branch=$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/')
cf_preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?)
echo "------"
preview_url=https://$branch.deriv-com-preview-links.pages.dev
Expand Down
34 changes: 0 additions & 34 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"79497287": "Exchange-traded funds",
"80411232": "Keep your login details secure and <0>enable two-factor authentication</0> to prevent unauthorised usage of your account.",
"80429744": "Fast and stable",
"83067481": "Our tracking site: t.deriv.com",
"83428444": "Start trading accumulators on Deriv",
"84123624": "Partnership Programme | Deriv",
"84402478": "Where do I find the blocks I need?",
Expand Down Expand Up @@ -260,7 +259,6 @@
"259593484": "real account",
"260003723": "Example 2",
"261542396": "We'll credit your commission for the previous month into your trading account after the 15th of every month. As an affiliate, you’ll earn commission when your referred clients trade on options and multipliers. To earn from your clients' MT5 trades, you'll need to sign up as an introducing broker. (see <0>How do I sign up as an introducing broker (IB)?</0>)",
"261753579": "Our weblog address: https://blog.deriv.com/",
"261878007": "If you select 'Matches', you receive the payout if the last digit of the exit price is the same as your prediction.",
"262590832": "Open long and short positions, depending on your preferred trading strategy.",
"263232709": "1 - 2 working days",
Expand Down Expand Up @@ -528,7 +526,6 @@
"507838091": "Available on <0>Android</0>, <1>iOS</1> and <2>web browser</2>",
"508640915": "Why trade accumulators on Deriv",
"509964491": "Trade even when most financial markets are closed",
"510309290": "Deriv X: Our CFD trading app by DevExperts (<0>Android app</0>, <1>iOS app</1>)",
"510416775": "Turbo options allow you to earn a potentially high payout if your market predictions are right and if the spot price does not touch or breach a predetermined barrier.",
"510912921": "If the selected condition is not met or if the exit price is equal to either barrier, your stake is lost.",
"511244573": "If you select 'Touch', you receive the payout if the market price touches the barrier at any time during the contract period.",
Expand Down Expand Up @@ -793,7 +790,6 @@
"758038191": "Find your role with us by browsing Deriv job opportunities in Melaka, Malaysia.",
"759844711": "Yes, it's completely free of charge <0>to join</0>.",
"760192418": "Trade wisely, and don’t let your emotions influence your decisions. Don’t trade when you’re prone to bad judgement.",
"760233310": "Our CFD trading application by Devexperts: dx.deriv.com",
"762926186": "A quick strategy is a ready-made strategy that you can use in Deriv Bot. There are 3 quick strategies you can choose from: Martingale, D'Alembert, and Oscar's Grind.",
"763072092": "MT5 trading signals subscriptions expire automatically after one month. To renew or cancel a subscription, follow these steps.",
"763514492": "Get integrated help",
Expand Down Expand Up @@ -843,7 +839,6 @@
"811176466": "Available on <0>Android</0> & <1>web browser</1>",
"811665902": "What is Deriv MetaTrader 5 (Deriv MT5)?",
"812101045": "Stop loss and/or take profit calculator for margin",
"812888944": "Edge businesses",
"813911098": "<p>Here's how to place a High/Low Ticks trade:</p><ul><li>Choose your preferred trading asset.</li><li>Predict which of the next 5 ticks will be the highest or lowest in the series.</li><li>Enter your stake or preferred potential payout amount.</li><li>Open your trade.</li></ul>",
"814009433": "Total trade turnover",
"814289409": "Then, withdraw your funds.",
Expand Down Expand Up @@ -1104,7 +1099,6 @@
"1062607057": "After hitting <0>Import</0>, select <0>Local</0> and click <0>Continue</0>.",
"1063195621": "Predict the performance of global giants including Apple, Amazon, and Netflix. Trade CFDs with leverage and no commission on stocks and stock indices.",
"1063761992": "Enjoy low spreads on our Deriv MT5 platform, now offering a range of stocks and stock indices from the brands you love.",
"1065635876": "2. Monitor the chart",
"1065883839": "For forex, a deal of 0.1 lots of GBP/USD will pay out USD 0.25 in commission based on the following formula:",
"1067137194": "Explore <0>CFDs</0> on Deriv MT5, and enjoy high leverage and low spreads to increase your returns when the market moves in your favour.",
"1067372545": "2. Under CFDs, look for Deriv cTrader and select <0>Get</0>.",
Expand Down Expand Up @@ -1502,7 +1496,6 @@
"1458062110": "<0>XLE.US</0> The Energy Select Sector SPDR® Fund ETF tracks the energy sector of the S&P 500 Index.",
"1461287243": "You can open a position for as low as 1 USD.",
"1462469069": "Make deposits and withdrawals using your credit and debit cards.",
"1463614633": "The following third-party apps are not covered in this program:",
"1464424169": "Contract size",
"1464468524": "Tanzania",
"1466745668": "Predict what number will be the last digit of the last tick of a contract.",
Expand Down Expand Up @@ -1534,7 +1527,6 @@
"1490099054": "who we are",
"1490540125": "How can I automate my trading strategy?",
"1490936453": "For your Deriv real account, go to <0>Reports</0> to close or sell your open positions.",
"1491012687": "Deriv P2P: Our peer-to-peer payments app (<0>Android app</0>, <1>iOS app</1>)",
"1491181763": "Range Break 100 Index",
"1492594418": "Easily make deposits and withdrawals on your desktop and mobile devices.",
"1493671770": "<1>Note:</1> You need to upgrade your MQL5 account to seller status to be able to add a signal. If you’ve not upgraded yet, <0>follow the steps on this page</0> to register as a seller.",
Expand Down Expand Up @@ -1772,7 +1764,6 @@
"1692148560": "Measures the value of gold against a basket of five global currencies (EUR, GBP, JPY, AUD, USD), each weighted by 20%.",
"1693556143": "This is to protect you from losing your money when using deal cancellation. With deal cancellation, you are allowed to reclaim your full stake amount (minus a small fee) if you cancel your contract within an hour of opening the position. Stop loss, on the other hand, will close your contract at a loss if the market moves against your position. However, once the deal cancellation expires, you can set a stop loss level on the open contract.",
"1693902817": "Risk awareness and management",
"1694241835": "5. Check profit",
"1694777943": "A user-friendly trading platform",
"1695892307": "Can I enter multiple lookbacks contracts simultaneously?",
"1696396625": "google",
Expand Down Expand Up @@ -1931,9 +1922,7 @@
"1846521577": "Is the Deriv Payment Agent Programme the same as Deriv P2P (DP2P)?",
"1846664697": "Use the chat feature in Deriv P2P to communicate with the trader you're dealing with.",
"1848198099": "<0>With an equivalent $100 position on CFDs</0>, with 1:500 leverage, you risk 2% * $50,000 = <1>$1,000 loss</1>.",
"1849054373": "3. Place a trade",
"1850849836": "If you select 'High Tick', you receive a payout if your selected tick is the highest of the 5 ticks.",
"1852402040": "General businesses",
"1852511168": "Example 2:",
"1853363847": "Available to trade on Deriv MT5 and Deriv X (with margin) and DTrader (with multipliers).",
"1855719834": "DEX 900DN",
Expand Down Expand Up @@ -2037,7 +2026,6 @@
"1926519171": "Limit the amount of money you may trade within a specified period.",
"1928776934": "Active traders",
"1928930389": "GBP/NOK",
"1929213891": "Our charting site: tradingview.deriv.com",
"1930078733": "Disclaimer: Affiliates residing in the EU may sign up for the Revenue share plan. However, only clients residing outside of the EU can be referred under this plan.",
"1930677092": "Fill up the form and hit <0>Post ad</0>.",
"1931163835": "What is forex?",
Expand Down Expand Up @@ -2116,7 +2104,6 @@
"1995896523": "DMT5 is developed to give you the best CFD trading experience. You can access our MT5 trader through desktop and even mobile.",
"1996332377": "1 ) }",
"1997138507": "If the last tick is equal to the average of the ticks, you don't win the payout.",
"1997646348": "Our graduate programme site: besquare.deriv.com",
"1998452473": "Earn up to 45% lifetime commission with an online trading provider that enables anyone to trade on several popular financial markets with the utmost convenience. Deriv Group Ltd — the owner of Deriv.com — has a proven track record of running successful referral programmes with prompt payouts.",
"1999120464": "Forex (Minor)",
"2000965959": "Trading hours",
Expand Down Expand Up @@ -3279,21 +3266,6 @@
"-763839364": "Dedicated support for smooth operations",
"-2125275828": "Unique trade types. Hundreds of instruments. Financial and derived markets.",
"-154889447": "Ready to join over 2.5 million traders who have chosen Deriv as their trusted broker? Enter your email address to create a free demo account.",
"-1131891395": "Important businesses",
"-1541452017": "Our payment site: cashier.deriv.com",
"-1441452782": "Our login site: oauth.deriv.com",
"-1260870907": "Our WebSockets API: *.binaryws.com api.deriv.com",
"-399968273": "Our main trading platform: app.deriv.com<0>*</0>",
"-147938047": "<0>*</0>This only covers the functionalities handled by Deriv",
"-1249554404": "Our legacy trading platform: smarttrader.deriv.com",
"-477259544": "Our GitHub repositories: github.com/binary-com",
"-461231581": "Deriv GO: Our options trading app (<0>Android app</0>, <1>iOS app</1>)",
"-1870128839": "Our site for marketing campaigns: trade.deriv.com (third-party)",
"-669674120": "Our site for static resources: static.deriv.com",
"-183077484": "Our FIX feed server for Deriv X: fix.deriv.com",
"-1667399786": "Our internal apps: *.deriv.cloud",
"-1969499072": "Our CFD trading platform by MetaQuotes: metatraderweb.app",
"-732739164": "Our community site: community.deriv.com",
"-323355149": "deriv careers",
"-507845880": "Cyberjaya bridge and lake view",
"-2024257622": "Dubai Skyscrappers",
Expand Down Expand Up @@ -3342,11 +3314,6 @@
"-1567349106": "Firewall filter",
"-1961258037": "Didn't receive an email from us? Here's what could've happened.",
"-1278724614": "Have any query or need assistance, check out the details to call our international help desk and our email ID. Feel free to contact us anytime!",
"-316740382": "1. Select your asset",
"-2109493526": "2. Set purchase conditions",
"-179851357": "3. Set restart conditions",
"-1508069714": "4. Run bot",
"-1825283686": "DBot trading",
"-1676772848": "dbot logo",
"-593892433": "Get into the Deriv Bot experience",
"-729973561": "Select an asset",
Expand Down Expand Up @@ -3470,7 +3437,6 @@
"-236603859": "DMT5 | MetaTrader 5 | Deriv",
"-2113392983": "Deriv MT5 | MetaTrader 5 trading platform | Deriv",
"-509865545": "Deriv MT5 is an all-in-one CFD trading platform where you can trade on the biggest financial markets and Deriv’s synthetic indices.",
"-2135272523": "1. Select an asset",
"-33819056": "Place a trade",
"-870439968": "Make a trade in 3 easy steps",
"-1833673205": "Tradable assets and growing",
Expand Down
4 changes: 3 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ export const onClientEntry = () => {
updateURLAsPerUserLanguage()
}

export const onRouteUpdate = () => {
export const onRouteUpdate = ({ location }) => {
Analytics.pageView(location.pathname, 'Deriv.com')

checkDomain()
// can't be resolved by package function due the gatsby architecture
window?._growthbook?.GrowthBook?.setURL(window.location.href)
Expand Down
2 changes: 0 additions & 2 deletions src/components/elements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import StepperView from './stepper-view'
import { Ul, Li } from './lists'
import { Carousel } from './carousel'
import type { CarouselProps } from './carousel'
import VideoPlayer from './video-player'
import Modal from './modal'
import ImageWithDireciton from './image-with-direction'

Expand Down Expand Up @@ -64,7 +63,6 @@ export {
Timeline,
StepperView,
Ul,
VideoPlayer,
Modal,
ImageWithDireciton,
}
43 changes: 0 additions & 43 deletions src/components/elements/video-player.tsx

This file was deleted.

Loading

0 comments on commit cfd7bd6

Please sign in to comment.