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

@@ -15,7 +15,7 @@
Route,
Scale,
} from 'lucide-svelte';
import { _, locale } from 'svelte-i18n';
import { _, locale } from '$lib/i18n';
import { getURLForLanguage } from '$lib/utils';
import { exampleGPXFile } from '$lib/assets/example';
import { writable } from 'svelte/store';

View File

@@ -18,7 +18,7 @@
import { languages } from '$lib/languages';
import { getURLForLanguage } from '$lib/utils';
import { getURLForGoogleDriveFile } from '$lib/components/embedding/Embedding';
import { _ } from 'svelte-i18n';
import { _ } from '$lib/i18n';
const {
treeFileView,

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import { getURLForLanguage } from '$lib/utils';
import { locale } from 'svelte-i18n';
import { locale } from '$lib/i18n';
import { page } from '$app/stores';
import { guides } from '$lib/components/docs/docs';

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import { getURLForLanguage } from '$lib/utils';
import { locale } from 'svelte-i18n';
import { locale } from '$lib/i18n';
import { guides, guideIcons } from '$lib/components/docs/docs';
export let data: {

View File

@@ -5,7 +5,7 @@
import { Button } from '$lib/components/ui/button';
import { getURLForLanguage } from '$lib/utils';
import { ChevronLeft, ChevronRight, PenLine, CornerDownRight } from 'lucide-svelte';
import { _, locale } from 'svelte-i18n';
import { _, locale } from '$lib/i18n';
export let data: {
guideModule: any;