@@ -3,13 +3,13 @@ import type {NavigationState, PartialState} from '@react-navigation/native';
33import Onyx from 'react-native-onyx' ;
44import type { ValueOf } from 'type-fest' ;
55import { translate } from '@libs/Localize' ;
6- import BaseLocaleListener from '@libs/Localize/LocaleListener/BaseLocaleListener' ;
76import getAdaptedStateFromPath from '@libs/Navigation/helpers/getAdaptedStateFromPath' ;
87import { linkingConfig } from '@libs/Navigation/linkingConfig' ;
98import { navigationRef } from '@libs/Navigation/Navigation' ;
109import type { RootNavigatorParamList } from '@libs/Navigation/types' ;
1110import type { Video } from '@userActions/Report' ;
1211import CONST from '@src/CONST' ;
12+ import TranslationStore from '@src/languages/TranslationStore' ;
1313import NAVIGATORS from '@src/NAVIGATORS' ;
1414import ONYXKEYS from '@src/ONYXKEYS' ;
1515import ROUTES from '@src/ROUTES' ;
@@ -142,7 +142,7 @@ function getOnboardingInitialPath(getOnboardingInitialPathParams: GetOnboardingI
142142}
143143
144144const getOnboardingMessages = ( locale ?: Locale ) => {
145- const resolvedLocale = locale ?? BaseLocaleListener . getPreferredLocale ( ) ;
145+ const resolvedLocale = locale ?? TranslationStore . getCurrentLocale ( ) ;
146146 const testDrive = {
147147 ONBOARDING_TASK_NAME : translate ( resolvedLocale , 'onboarding.testDrive.name' , { } ) ,
148148 EMBEDDED_DEMO_WHITELIST : [ 'http://' , 'https://' , 'about:' ] as string [ ] ,
0 commit comments