From: PhiTux Date: Wed, 27 Aug 2025 12:22:00 +0000 (+0200) Subject: progress in i18n X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=00ff88c67f0898db0b452cfd592332da495fe0cc;p=DailyTxT.git progress in i18n --- diff --git a/frontend/src/lib/Datepicker.svelte b/frontend/src/lib/Datepicker.svelte index 09df692..0d0e637 100644 --- a/frontend/src/lib/Datepicker.svelte +++ b/frontend/src/lib/Datepicker.svelte @@ -131,7 +131,15 @@ }; // weekdays - const weekDays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']; + const weekDays = [ + $t('calendar.day_short.monday'), + $t('calendar.day_short.tuesday'), + $t('calendar.day_short.wednesday'), + $t('calendar.day_short.thursday'), + $t('calendar.day_short.friday'), + $t('calendar.day_short.saturday'), + $t('calendar.day_short.sunday') + ];
@@ -226,7 +234,7 @@ fill-rule: evenodd; } add-bookmark + >{$t('calendar.button_bookmark')} {#if !$cal.daysBookmarked.includes($selectedDate.day)} event.preventDefault()}> + {#if $searchTag.id}
@@ -298,7 +290,7 @@ type="text" class="form-control" placeholder="Suche" - aria-label="Suche" + aria-label={$t('search.search')} aria-describedby="search-button" onkeydown={handleKeyDown} autocomplete="off" @@ -316,7 +308,7 @@ {#if $isSearching} {:else} - Suche + {$t('search.search')} {/if} {/if} @@ -324,7 +316,9 @@ {#if showTagDropdown}
{#if filteredTags.length === 0} - Kein Tag gefunden... + + {$t('tags.no_tags_found')} + {:else} {#each filteredTags as tag, index (tag.id)} @@ -379,7 +373,9 @@ {/each} {:else} - Keine Ergebnisse + + {$t('search.no_results')} + {/if}
@@ -394,7 +390,9 @@ aria-atomic="true" >
-
Fehler beim Suchen!
+
+ {$t('search.toast.error')} +
@@ -406,7 +404,9 @@ aria-atomic="true" >
-
Fehler beim Markieren des Tages!
+
+ {$t('calendar.toast.error_bookmarking')} +
diff --git a/frontend/src/lib/settingsStore.js b/frontend/src/lib/settingsStore.js index 77d0867..6e97eab 100644 --- a/frontend/src/lib/settingsStore.js +++ b/frontend/src/lib/settingsStore.js @@ -2,13 +2,6 @@ import {writable} from 'svelte/store'; export const readingMode = writable(''); -// old, to be deleted -export const useTrianglify = writable(true); -export const trianglifyOpacity = writable(0.4); -export const trianglifyColor = writable(''); -export const backgroundColor = writable(''); -//========= - export const settings = writable({}); export const tempSettings = writable({}); diff --git a/frontend/src/routes/(authed)/+layout.svelte b/frontend/src/routes/(authed)/+layout.svelte index b2c21fc..2f75cc4 100644 --- a/frontend/src/routes/(authed)/+layout.svelte +++ b/frontend/src/routes/(authed)/+layout.svelte @@ -7,9 +7,7 @@ readingMode, settings, tempSettings, - autoLoadImagesThisDevice, - useTrianglify, - trianglifyOpacity + autoLoadImagesThisDevice } from '$lib/settingsStore.js'; import { API_URL } from '$lib/APIurl.js'; import { tags } from '$lib/tagStore.js'; @@ -1939,26 +1937,10 @@ border-radius: 5px; } - #trianglifyOpacity { - max-width: 300px; - } - - #trianglifyOpacityNumber { - width: 80px; - } - .modal-body { overflow-y: hidden; } - .modal-content { - /* backdrop-filter: blur(10px) saturate(150%); - background-color: rgba(208, 208, 208, 0.61); */ - - /* background-color: rgba(43, 56, 78, 0.75); */ - /* color: rgb(22, 22, 22); */ - } - .modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.2); } diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index d8a3b50..8e9b5a6 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -4,7 +4,6 @@ import { goto } from '$app/navigation'; import { onMount } from 'svelte'; import '../scss/styles.scss'; - import { trianglifyOpacity } from '$lib/settingsStore.js'; import { page } from '$app/state'; import { API_URL } from '$lib/APIurl.js'; import { alwaysShowSidenav, generateNeonMesh } from '$lib/helpers.js'; @@ -71,14 +70,6 @@ } ); - $effect(() => { - if ($trianglifyOpacity) { - if (document.querySelector('canvas')) { - document.querySelector('canvas').style.opacity = $trianglifyOpacity; - } - } - }); - function calculateResize() { if (window.innerWidth > 840) { $alwaysShowSidenav = true;