adds spanish language options
This commit is contained in:
@@ -255,6 +255,7 @@
|
||||
"slope": "Steigung",
|
||||
"someone": "Jemand",
|
||||
"sort": "Sortieren",
|
||||
"spanish": "Spanisch",
|
||||
"speed": "Geschwindigkeit",
|
||||
"statistics": "Statistiken",
|
||||
"stop-drawing": "Zeichnen beenden",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Slope",
|
||||
"someone": "Someone",
|
||||
"sort": "Sort",
|
||||
"spanish": "Spanish",
|
||||
"speed": "Speed",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Stop drawing",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Pendiente",
|
||||
"someone": "Alguien",
|
||||
"sort": "Ordenar",
|
||||
"spanish": "Español",
|
||||
"speed": "Velocidad",
|
||||
"statistics": "Estadísticas",
|
||||
"stop-drawing": "Parar de diseñar",
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
"list-not-shared": "Not shared with anyone",
|
||||
"list-public-warning": "Tous les itinéraires de cette liste seront publics.",
|
||||
"list-saved-successfully": "Liste enregistrée avec succès",
|
||||
"list-share-warning": "",
|
||||
"list-share-warning": "Le partage d'une liste partage automatiquement toutes les pistes qu'elle contient.",
|
||||
"list-share-warning-update": "Added trails will be shared with everyone that has access to this list.",
|
||||
"location": "Localisation",
|
||||
"login": "Connexion",
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Pente",
|
||||
"someone": "Someone",
|
||||
"sort": "Trier",
|
||||
"spanish": "Espagnol",
|
||||
"speed": "Vitesse",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Arrêter de tracer",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Slope",
|
||||
"someone": "Someone",
|
||||
"sort": "Rendezés",
|
||||
"spanish": "spanyol",
|
||||
"speed": "Speed",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Stop drawing",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Pendenza",
|
||||
"someone": "Someone",
|
||||
"sort": "Ordina",
|
||||
"spanish": "spagnolo",
|
||||
"speed": "Velocità",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Smettere di disegnare",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Slope",
|
||||
"someone": "Someone",
|
||||
"sort": "Sorteren",
|
||||
"spanish": "Spaans",
|
||||
"speed": "Speed",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Stop drawing",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Nachylenie",
|
||||
"someone": "Someone",
|
||||
"sort": "Sortowanie",
|
||||
"spanish": "hiszpański",
|
||||
"speed": "Prędkość",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Przestań rysować",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "Inclinação",
|
||||
"someone": "Someone",
|
||||
"sort": "Ordenar",
|
||||
"spanish": "Espanhol",
|
||||
"speed": "Velocidade",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "Parar desenho",
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
"slope": "坡度",
|
||||
"someone": "Someone",
|
||||
"sort": "排序",
|
||||
"spanish": "西班牙语",
|
||||
"speed": "速度",
|
||||
"statistics": "Statistics",
|
||||
"stop-drawing": "停止绘制",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user