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

@@ -4,7 +4,7 @@ import type { Settings } from "../settings";
const SettingsCreateSchema = z.object({
unit: z.enum(["metric", "imperial"]).optional(),
language: z.enum(["en", "de", "fr", "hu", "it", "nl", "pl", "pt", "zh"]).optional(),
language: z.enum(["en", "de", "es", "fr", "hu", "it", "nl", "pl", "pt", "zh"]).optional(),
mapFocus: z.enum(["trails", "location"]).optional(),
location: z.object({
name: z.string(),

View File

@@ -3,7 +3,7 @@ import type { NotificationType } from "./notification";
class Settings {
id?: string;
unit?: "metric" | "imperial";
language?: "en" | "de" | "fr" | "hu" | "it" | "nl" | "pl" | "pt" | "zh";
language?: "en" | "de" | "es" | "fr" | "hu" | "it" | "nl" | "pl" | "pt" | "zh";
mapFocus?: "trails" | "location";
location?: { name: string, lat: number, lon: number };
category?: string;
@@ -15,7 +15,7 @@ class Settings {
constructor(
unit: "metric" | "imperial",
language: "en" | "de" | "fr" | "hu" | "it" | "nl" | "pl" | "pt" | "zh",
language: "en" | "de" | "es" | "fr" | "hu" | "it" | "nl" | "pl" | "pt" | "zh",
mapFocus: "trails" | "location",
user: string,
params?: {