From afb385a11835ac02c9218ff0ee10b28a9dc0cc23 Mon Sep 17 00:00:00 2001 From: Julien Richard-Foy Date: Tue, 26 Mar 2024 14:17:17 +0100 Subject: [PATCH] Allow users to preset the lang in the URL --- frontend/src/Settings.tsx | 4 ++-- frontend/src/i18n.tsx | 32 ++++++++++++++++++++++++-------- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/frontend/src/Settings.tsx b/frontend/src/Settings.tsx index f47f152..8836662 100644 --- a/frontend/src/Settings.tsx +++ b/frontend/src/Settings.tsx @@ -2,7 +2,7 @@ import { JSX } from "solid-js"; import { Domain } from "./State"; import { Overlay } from "./map/Overlay"; import {Checkbox, Radio} from "./styles/Forms"; -import {availableLangsAndLabels, useI18n} from "./i18n"; +import {supportedLangsAndLabels, useI18n} from "./i18n"; /** User settings */ export const Settings = (props: { @@ -22,7 +22,7 @@ export const Settings = (props: { { m().settingsLanguage() }