remove svelte-i18n dependency, replace with minimalistic implementation

This commit is contained in:
vcoppe
2025-06-08 13:49:39 +02:00
parent a9ea0e223d
commit 228ad1044e
59 changed files with 121 additions and 746 deletions

View File

@@ -8,7 +8,7 @@
import { copied, pasteSelection, selectAll, selection } from './Selection';
import { ClipboardPaste, FileStack, Plus } from 'lucide-svelte';
import Shortcut from '$lib/components/Shortcut.svelte';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
import { createFile } from '$lib/stores';
export let orientation: 'vertical' | 'horizontal';

View File

@@ -21,7 +21,7 @@
type ListItem,
type ListTrackItem,
} from './FileList';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
import { selection } from './Selection';
export let node:

View File

@@ -23,7 +23,7 @@
} from './FileList';
import { selection } from './Selection';
import { isMac } from '$lib/utils';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
export let node:
| Map<string, Readable<GPXFileWithStatistics | undefined>>

View File

@@ -50,7 +50,7 @@
map,
} from '$lib/stores';
import { GPXTreeElement, Track, type AnyGPXTreeElement, Waypoint, GPXFile } from 'gpx';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
import MetadataDialog from './MetadataDialog.svelte';
import StyleDialog from './StyleDialog.svelte';
import { waypointPopup } from '$lib/components/gpx-layer/GPXLayerPopup';

View File

@@ -8,7 +8,7 @@
import { Save } from 'lucide-svelte';
import { ListFileItem, ListTrackItem, type ListItem } from './FileList';
import { GPXTreeElement, Track, type AnyGPXTreeElement, Waypoint, GPXFile } from 'gpx';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
import { editMetadata } from '$lib/stores';
export let node: GPXTreeElement<AnyGPXTreeElement> | Waypoint[] | Waypoint;

View File

@@ -9,7 +9,7 @@
import { ListFileItem, ListTrackItem, type ListItem } from './FileList';
import { selection } from './Selection';
import { editStyle, gpxLayers } from '$lib/stores';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
export let item: ListItem;
export let open = false;