From fc45a279dea091d8f07be9b90c46ad540b62f959 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 22 Jan 2024 16:08:47 +0100 Subject: [PATCH] Added language switcher to footer --- Wave/Components/Layout/MainLayout.razor | 31 +++++++++++++++++++++---- Wave/Controllers/LanguageController.cs | 19 +++++++++++++++ Wave/Program.cs | 21 ++++++++++------- Wave/wwwroot/css/main.min.css | 2 +- 4 files changed, 59 insertions(+), 14 deletions(-) create mode 100644 Wave/Controllers/LanguageController.cs diff --git a/Wave/Components/Layout/MainLayout.razor b/Wave/Components/Layout/MainLayout.razor index f05e9a3..a614e18 100644 --- a/Wave/Components/Layout/MainLayout.razor +++ b/Wave/Components/Layout/MainLayout.razor @@ -1,5 +1,10 @@ -@inherits LayoutComponentBase +@using System.Globalization +@using System.Net +@using Microsoft.Extensions.Options +@inherits LayoutComponentBase +@inject NavigationManager Navigation +@inject IOptions LocalizationOptions @inject IStringLocalizer Localizer
@@ -19,16 +24,32 @@
@Body
-