Skip to content

Commit

Permalink
ensure desktop doesn't get translations yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Sep 9, 2024
1 parent 719104c commit 5f9d904
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions packages/special-pages/pages/duckplayer/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,23 @@ export async function init (messaging, baseEnvironment) {
willThrow={environment.willThrow}>
<ErrorBoundary didCatch={didCatch} fallback={<Fallback showDetails={environment.env === 'development'}/>}>
<UpdateEnvironment search={window.location.search}/>
<TranslationProvider translationObject={enStrings} fallback={enStrings} textLength={environment.textLength}>
<MessagingContext.Provider value={messaging}>
<SettingsProvider settings={settings}>
<UserValuesProvider initial={init.userValues}>
{settings.layout === 'desktop' && <DesktopApp embed={embed} />}
{settings.layout === 'mobile' && <MobileApp embed={embed} />}
{/* bump */}
<WillThrow />
</UserValuesProvider>
</SettingsProvider>
</MessagingContext.Provider>
</TranslationProvider>
<MessagingContext.Provider value={messaging}>
<SettingsProvider settings={settings}>
<UserValuesProvider initial={init.userValues}>
{settings.layout === 'desktop' && (
<TranslationProvider translationObject={enStrings} fallback={enStrings} textLength={environment.textLength}>
<DesktopApp embed={embed} />
</TranslationProvider>
)}
{settings.layout === 'mobile' && (
<TranslationProvider translationObject={strings} fallback={enStrings} textLength={environment.textLength}>
<MobileApp embed={embed} />
</TranslationProvider>
)}
<WillThrow />
</UserValuesProvider>
</SettingsProvider>
</MessagingContext.Provider>
</ErrorBoundary>
</EnvironmentProvider>
, root)
Expand Down

0 comments on commit 5f9d904

Please sign in to comment.