From 9188148fe7af97fe41176ef3ccfb5ae26b6b0538 Mon Sep 17 00:00:00 2001 From: Mario Linz Date: Wed, 25 May 2022 15:37:15 +0200 Subject: [PATCH] =?UTF-8?q?Navigation=20und=20Content-Pages=20so=20angepas?= =?UTF-8?q?st,=20dass=20=C3=BCber=20einen=20Language-Chooser=20die=20Sprac?= =?UTF-8?q?he=20der=20Seite=20gewechselt=20werden=20kann=20und=20automatis?= =?UTF-8?q?ch=20auch=20der=20reload=20der=20Content-Page=20angesto=C3=9Fen?= =?UTF-8?q?=20wird.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api.ts | 2 +- src/components/App.svelte | 18 +++++----- src/components/routes/Content.svelte | 34 ++++++++++++++++++- src/components/widgets/LanguageChooser.svelte | 23 +++++++------ src/components/widgets/Navigation.svelte | 5 +-- src/css/theme-2022/components/general.less | 12 +++++++ .../components/language-chooser.less | 14 ++++---- 7 files changed, 78 insertions(+), 30 deletions(-) diff --git a/src/api.ts b/src/api.ts index be4263a..7ebc6ac 100644 --- a/src/api.ts +++ b/src/api.ts @@ -234,7 +234,7 @@ export const getNavigations = async (l: Locale): Promise => { method: "get", offset: 0, filter: { - locale: l.key, + // locale: l.key, }, }) return response.data diff --git a/src/components/App.svelte b/src/components/App.svelte index aa22c84..ee50449 100644 --- a/src/components/App.svelte +++ b/src/components/App.svelte @@ -59,16 +59,14 @@
-
- - - - - - - - -
+ + + + + + + +