diff --git a/frontend/src/routes/(root)/(logged)/+page.svelte b/frontend/src/routes/(root)/(logged)/+page.svelte index 9f7c9b493c..413a537787 100644 --- a/frontend/src/routes/(root)/(logged)/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/+page.svelte @@ -41,6 +41,12 @@ import { ignoredTutorials } from '$lib/components/tutorials/ignoredTutorials' import TutorialBanner from '$lib/components/home/TutorialBanner.svelte' import NoDirectDeployAlert from '$lib/components/NoDirectDeployAlert.svelte' + import { getLocale, getLocaleChoice, setLocale } from '$lib/i18n/t.svelte' + import { LOCALE_NAMES } from '$lib/i18n/index' + import { getLocalSetting, storeLocalSetting } from '$lib/utils' + import { X, Languages } from 'lucide-svelte' + + let i18nBannerDismissed = $state(getLocalSetting('i18n_banner_dismissed') === 'true') type Tab = 'hub' | 'workspace' @@ -117,7 +123,8 @@ setTimeout(() => { workspaceTutorials?.runTutorialById('workspace-onboarding') }, 500) - } else if (tutorialParam === 'workspace-onboarding-operator') { // Small delay to ensure page is fully loaded + } else if (tutorialParam === 'workspace-onboarding-operator') { + // Small delay to ensure page is fully loaded setTimeout(() => { workspaceTutorials?.runTutorialById('workspace-onboarding-operator') }, 500) @@ -279,6 +286,33 @@ Windmill instance, such as keeping resource types up to date. {/if} + {#if !i18nBannerDismissed && getLocaleChoice() === 'auto' && getLocale() !== 'en'} +
+ + + Windmill is displayed in {LOCALE_NAMES[getLocale()]} based on your browser settings. You can + + or change the language anytime from the user menu. + + +
+ {/if} - showCreateButtons = v}/> + (showCreateButtons = v)} /> {#if !$userStore?.operator}