- Select API Call - Version 3
+
+ Select API Call - Version 3
+
- ALL CALLS
+
+ ALL CALLS
+
{playground_requests
.filter((option) => {
diff --git a/src/features/Apiexplorer/LoginDialog/index.tsx b/src/features/Apiexplorer/LoginDialog/index.tsx
index 58ca74e2..eb58c9ef 100644
--- a/src/features/Apiexplorer/LoginDialog/index.tsx
+++ b/src/features/Apiexplorer/LoginDialog/index.tsx
@@ -2,6 +2,7 @@ import React, { useCallback } from 'react';
import { Modal, Button } from '@deriv/ui';
import useLoginUrl from '@site/src/hooks/useLoginUrl';
import styles from './LoginDialog.module.scss';
+import Translate from '@docusaurus/Translate';
type TLoginDialog = {
setToggleModal: React.Dispatch>;
@@ -36,21 +37,25 @@ export const LoginDialog = ({ setToggleModal }: TLoginDialog) => {
>
- This API call must be authorised because it requires access to your account
- information.
+
+ This API call must be authorised because it requires access to your account
+ information.
+
- Log in to your Deriv account to proceed. If you don’t have a Deriv account, sign up
- first.
+
+ Log in to your Deriv account to proceed. If you don’t have a Deriv account, sign
+ up first.
+
diff --git a/src/features/Apiexplorer/RequestJSONBox/index.tsx b/src/features/Apiexplorer/RequestJSONBox/index.tsx
index 495ac3aa..ca5b9f59 100644
--- a/src/features/Apiexplorer/RequestJSONBox/index.tsx
+++ b/src/features/Apiexplorer/RequestJSONBox/index.tsx
@@ -1,10 +1,11 @@
import { TSocketEndpointNames } from '@site/src/configs/websocket/types';
import clsx from 'clsx';
-import React, { useEffect, useMemo, useState } from 'react';
+import React, { useMemo } from 'react';
import RequestResponseRenderer from '../RequestResponseRenderer';
import style from './RequestJSONBox.module.scss';
import SubscribeRenderer from '../SubscribeRenderer';
import { TSocketSubscribableEndpointNames } from '@site/src/configs/websocket/types';
+import Translate from '@docusaurus/Translate';
interface TRequestJSONBox {
handleChange: React.ChangeEventHandler;
@@ -27,7 +28,7 @@ function RequestJSONBox({
- Your JSON object is invalid. Please make sure you provide the correct syntax for your
- JSON object.
+
+ Your JSON object is invalid. Please make sure you provide the correct syntax for
+ your JSON object.
+
diff --git a/src/features/Auth/Login/Login.tsx b/src/features/Auth/Login/Login.tsx
index 9816dc6c..4ea78e3d 100644
--- a/src/features/Auth/Login/Login.tsx
+++ b/src/features/Auth/Login/Login.tsx
@@ -3,6 +3,7 @@ import React from 'react';
import styles from './Login.module.scss';
import useLoginUrl from '@site/src/hooks/useLoginUrl';
import Footer from '@site/src/components/Footer';
+import Translate from '@docusaurus/Translate';
export const Login = () => {
const { getUrl } = useLoginUrl();
@@ -16,10 +17,12 @@ export const Login = () => {
- Log in to your Deriv account to get the API token and start using our API.
+
+ Log in to your Deriv account to get the API token and start using our API.
+
diff --git a/src/features/Endpoint/Endpoint.tsx b/src/features/Endpoint/Endpoint.tsx
index 5e1dc618..90e5778a 100644
--- a/src/features/Endpoint/Endpoint.tsx
+++ b/src/features/Endpoint/Endpoint.tsx
@@ -4,6 +4,7 @@ import { Button, Text } from '@deriv/ui';
import { getAppId } from '@site/src/utils';
import { DEFAULT_WS_SERVER } from '@site/src/utils/constants';
import styles from './Endpoint.module.scss';
+import Translate, { translate } from '@docusaurus/Translate';
interface IEndpointFormValues {
app_id: string;
@@ -50,7 +51,7 @@ const EndPoint = () => {
-
Markup
+
+ Markup
+
- You can earn commission by adding a markup to the price of each trade. Enter your
- markup percentage here.
+
+ You can earn commission by adding a markup to the price of each trade. Enter
+ your markup percentage here.
+
- Note: Markup is only available for real accounts.
+
+ Note: Markup is only available for real accounts.
+
- Enter 0 if you don‘t want to earn a markup. Max markup: 3%
+
+ Enter 0 if you don‘t want to earn a markup. Max markup: 3%
+
{errors && errors.app_markup_percentage && (
@@ -234,11 +250,15 @@ const AppForm = ({
-
OAuth details
+
+ OAuth details
+
- This allows clients to log in to your app using their Deriv accounts without an
- API token.
+
+ This allows clients to log in to your app using their Deriv accounts without an
+ API token.
+
@@ -250,15 +270,19 @@ const AppForm = ({
type='text'
placeholder=' '
/>
-
+
- Please note that this URL will be used as the OAuth redirect URL for the OAuth
- authorization.
+
+ Please note that this URL will be used as the OAuth redirect URL for the OAuth
+ authorization.
+
{errors && errors?.redirect_uri && (
{errors.redirect_uri?.message}
@@ -276,7 +300,9 @@ const AppForm = ({
type='text'
placeholder=' '
/>
-
+
{errors && errors.verification_uri && (
{errors.verification_uri.message}
@@ -286,9 +312,13 @@ const AppForm = ({
-
Scope of authorization
+
+ Scope of authorization
+
- Select the scope for your app:
+
+ Select the scope for your app:
+
- By registering your application, you acknowledge that you‘ve read and accepted
- the Deriv API{' '}
+
+ By registering your application, you acknowledge that you‘ve read and
+ accepted the Deriv API
+ {' '}
- terms and conditions
+
+ terms and conditions
+
- To see your details reflected, please register your app via the registration form.
+
+ To see your details reflected, please register your app via the registration form.
+
- Your apps
+ Your apps
- Register your app, get an app ID, and start using the Deriv API
+ Register your app, get an app ID, and start using the Deriv API