From 354e1b0aeb742ff6c45a4bea93bfec0d2b72820a Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Tue, 9 Jul 2024 11:12:40 +0800 Subject: [PATCH 1/4] chore: add missing translation --- src/features/Home/GetStarted/GetStarted.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/Home/GetStarted/GetStarted.tsx b/src/features/Home/GetStarted/GetStarted.tsx index 85711e431..0723a06ac 100644 --- a/src/features/Home/GetStarted/GetStarted.tsx +++ b/src/features/Home/GetStarted/GetStarted.tsx @@ -23,7 +23,7 @@ export const GetStarted = () => {
- 1. Learn about our API + 1. Learn about our API

Understand basic concepts and terminologies From c2cca7b686a66a4a642a8b19f87d1c9a9e2ed4ec Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Tue, 9 Jul 2024 11:44:03 +0800 Subject: [PATCH 2/4] chore: add missing translation --- .../Home/ClientLibraries/__tests__/ClientLibraries.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx index 084ab6818..f4223a5d9 100644 --- a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx +++ b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx @@ -19,7 +19,7 @@ describe('ClientLibraries', () => { }); it('should render subtitle text properly', () => { const client_subtitle = screen.getByText( - 'Simplify your development processes and get your app up and running faster with the client library of your choice.', + 'Simplify your development processes and get your app up and running', ); expect(client_subtitle).toBeInTheDocument(); }); From 961a7636e741d810bdb92e8a7eef626d88e94097 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Tue, 9 Jul 2024 12:01:05 +0800 Subject: [PATCH 3/4] chore: add missing translation --- i18n/en/code.json | 6 ++++++ src/components/AccountSwitcher/index.tsx | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index 01ed08513..81a70f8bd 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -864,5 +864,11 @@ }, "You've created the maximum number of tokens.": { "message": "You've created the maximum number of tokens." + }, + "Deriv account": { + "message": "Deriv account" + }, + "Log out": { + "message": "Log out" } } diff --git a/src/components/AccountSwitcher/index.tsx b/src/components/AccountSwitcher/index.tsx index a6a0e046d..217a6f6ae 100644 --- a/src/components/AccountSwitcher/index.tsx +++ b/src/components/AccountSwitcher/index.tsx @@ -8,6 +8,7 @@ import SelectedAccount from '../CustomSelectDropdown/account-dropdown/SelectedAc import AccountDropdown from '../CustomSelectDropdown/account-dropdown/AccountDropdown'; import styles from './account_switcher.module.scss'; import SearchButton from '../SearchButton'; +import Translate from '@docusaurus/Translate'; const AccountSwitcher = () => { const { logout } = useLogout(); @@ -41,7 +42,9 @@ const AccountSwitcher = () => { {is_toggle_dropdown && (

-
Deriv account
+
+ Deriv account +
From fb2a5050c3689093a68eb346c207d3b33b134862 Mon Sep 17 00:00:00 2001 From: shafin-deriv Date: Tue, 9 Jul 2024 12:35:53 +0800 Subject: [PATCH 4/4] chore: add missing translation --- .../ClientLibraries/__tests__/ClientLibraries.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx index f4223a5d9..03527ebf7 100644 --- a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx +++ b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx @@ -18,10 +18,10 @@ describe('ClientLibraries', () => { expect(client_text).toBeInTheDocument(); }); it('should render subtitle text properly', () => { - const client_subtitle = screen.getByText( - 'Simplify your development processes and get your app up and running', - ); - expect(client_subtitle).toBeInTheDocument(); + const regex = + /Simplify your development processes and get your app up and running\s*faster with the client library of your choice\./i; + + expect(screen.getByText(regex)).toBeInTheDocument(); }); it('should navigate to the correct links on click', () => { expect(screen.getByText('Go to the JavaScript library').closest('a')).toHaveAttribute(