adds spanish language options

This commit is contained in:
Christian Beutel
2025-01-10 17:23:12 +01:00
parent 06b6bba31f
commit 92c05144b9
14 changed files with 107 additions and 5 deletions

View File

@@ -15,6 +15,7 @@
{ text: $_("chinese"), value: "zh" },
{ text: $_("german"), value: "de" },
{ text: $_("english"), value: "en" },
{ text: $_("spanish"), value: "es" },
{ text: $_("french"), value: "fr" },
{ text: $_("hungarian"), value: "hu" },
{ text: $_("italian"), value: "it" },
@@ -33,11 +34,11 @@
async function handleLanguageSelection(
value: "en" | "de" | "fr" | "hu" | "nl" | "pl" | "pt",
) {
locale.set(value);
await settings_update({
id: settings!.id,
language: value,
});
window.location.reload();
}
async function handleUnitSelection(e: RadioItem) {