@inherits LayoutComponentBase @using AliasVault.Client.Auth.Components @using AliasVault.Client.Shared.Components @inject NavigationManager NavigationManager
@if (ShowLanguageSwitcher) {
}
@Body
@code { private bool ShowLanguageSwitcher => ShouldShowLanguageSwitcher(); private bool ShouldShowLanguageSwitcher() { var currentPath = NavigationManager.Uri; // Show on login, forgot password, and register pages, not during setup or unlock return currentPath.Contains("/user/login", StringComparison.OrdinalIgnoreCase) || currentPath.Contains("/user/forgot-password", StringComparison.OrdinalIgnoreCase) || currentPath.Contains("/user/register", StringComparison.OrdinalIgnoreCase) || currentPath.EndsWith('/'); } }