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 +
diff --git a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx index 084ab6818..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 faster with the client library of your choice.', - ); - 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( 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