2 Commits

Author SHA1 Message Date
vcoppe 9e7788f543 New translations view.mdx (German)
[ci skip]
2026-07-21 01:29:56 +02:00
vcoppe 5a6d7c7e36 New translations en.json (German)
[ci skip]
2026-07-21 01:29:51 +02:00
4 changed files with 2 additions and 13 deletions
@@ -21,7 +21,6 @@
import { selection } from '$lib/logic/selection'; import { selection } from '$lib/logic/selection';
import { untrack } from 'svelte'; import { untrack } from 'svelte';
import { isSelected, toggle } from '$lib/components/map/layer-control/utils'; import { isSelected, toggle } from '$lib/components/map/layer-control/utils';
import { boundsManager } from '$lib/logic/bounds';
let { let {
useHash = true, useHash = true,
@@ -91,7 +90,6 @@
fileStateCollection.setEmbeddedFiles(files); fileStateCollection.setEmbeddedFiles(files);
$fileOrder = ids; $fileOrder = ids;
selection.selectAll(); selection.selectAll();
boundsManager.fitBoundsOnLoad(ids);
}); });
} }
-8
View File
@@ -1,5 +1,3 @@
import { writable } from 'svelte/store';
type Dictionary = { type Dictionary = {
[key: string]: string | Dictionary; [key: string]: string | Dictionary;
}; };
@@ -12,7 +10,6 @@ function getDateFormatter(locale: string) {
} }
class Locale { class Locale {
private _store = writable(this);
private _lang = $state(''); private _lang = $state('');
private _isLoadingInitial = $state(true); private _isLoadingInitial = $state(true);
private _isLoading = $state(true); private _isLoading = $state(true);
@@ -41,7 +38,6 @@ class Locale {
} }
import(`../locales/${this._lang}.json`).then((module) => { import(`../locales/${this._lang}.json`).then((module) => {
this.dictionary = module.default; this.dictionary = module.default;
this._store.set(this);
if (this._isLoadingInitial) { if (this._isLoadingInitial) {
this._isLoadingInitial = false; this._isLoadingInitial = false;
} }
@@ -71,10 +67,6 @@ class Locale {
public get df() { public get df() {
return this._df; return this._df;
} }
public subscribe(run: (value: Locale) => void, invalidate?: (value?: Locale) => void) {
return this._store.subscribe(run, invalidate);
}
} }
export const i18n = new Locale(); export const i18n = new Locale();
-1
View File
@@ -10,6 +10,5 @@ export const languages: Record<string, string> = {
nl: 'Nederlands', nl: 'Nederlands',
'pt-BR': 'Português (Brasil)', 'pt-BR': 'Português (Brasil)',
tr: 'Türkçe', tr: 'Türkçe',
uk: 'Українська',
zh: '简体中文', zh: '简体中文',
}; };
+2 -2
View File
@@ -163,7 +163,7 @@
"path": "Sendero", "path": "Sendero",
"pedestrian": "Peatonal", "pedestrian": "Peatonal",
"cycleway": "Ciclovía", "cycleway": "Ciclovía",
"steps": "Pasos", "steps": "Escalones",
"road": "Carretera", "road": "Carretera",
"bridleway": "Ruta ecuestre", "bridleway": "Ruta ecuestre",
"platform": "Plataforma", "platform": "Plataforma",
@@ -230,7 +230,7 @@
"extract": { "extract": {
"tooltip": "Extraer contenidos en elementos separados", "tooltip": "Extraer contenidos en elementos separados",
"button": "Extraer", "button": "Extraer",
"help": "La extracción del contenido de los elementos seleccionados creará un elemento separado para cada uno de sus contenidos.", "help": "Al extraer los contenidos de los elementos seleccionados creará un elemento separado para cada uno.",
"help_invalid_selection": "Su selección debe contener elementos con múltiples trazas para extraerlos." "help_invalid_selection": "Su selección debe contener elementos con múltiples trazas para extraerlos."
}, },
"elevation": { "elevation": {