Skip to content

Commit

Permalink
Hirad/Mobile active language update issue (#5132)
Browse files Browse the repository at this point in the history
* Mobile language menu does not update active language

* Get language is added to the component
  • Loading branch information
hirad-deriv committed Apr 27, 2022
1 parent 37759fd commit 77861e5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import classNames from 'classnames';
import React from 'react';
import { Div100vhContainer, Icon, MobileDrawer, ToggleSwitch, Text } from '@deriv/components';
import { routes, PlatformContext } from '@deriv/shared';
import { localize, getAllowedLanguages } from '@deriv/translations';
import { localize, getAllowedLanguages, getLanguage } from '@deriv/translations';
import { NetworkStatus } from 'App/Components/Layout/Footer';
import ServerTime from 'App/Containers/server-time.jsx';
import { BinaryLink } from 'App/Components/Routes';
import getRoutesConfig from 'App/Constants/routes-config';
import { currentLanguage, changeLanguage } from 'Utils/Language';
import { changeLanguage } from 'Utils/Language';
import LiveChat from 'App/Components/Elements/LiveChat';

const MenuLink = ({
Expand Down Expand Up @@ -254,6 +254,8 @@ const ToggleMenuDrawer = React.forwardRef(
};

const getLanguageRoutes = () => {
const currentLanguage = getLanguage();

return (
<MobileDrawer.SubMenu
has_subheader
Expand Down

0 comments on commit 77861e5

Please sign in to comment.