Misc. Bug fixes and Translation Improvments (#926)

* Fixes [BUG] Editing a location removes it from all the collections
Fixes #893

* Add new translations for Chinese and Ukrainian locales

- Updated zh.json to include new keys: "about_country", "about_region", "show_less", and "show_more".
- Registered Ukrainian locale in +layout.svelte and added it to the locales array.

* Update translation for 'back' in Dutch locale (#917)

---------

Co-authored-by: Sille Van Landschoot <979071+sillevl@users.noreply.github.com>
This commit is contained in:
Sean Morley
2025-12-10 14:53:48 -05:00
committed by GitHub
parent 037b45fc17
commit d954ac057d
25 changed files with 5355 additions and 4193 deletions

View File

@@ -35,7 +35,7 @@
import ChevronDown from '~icons/mdi/chevron-down';
import ChevronUp from '~icons/mdi/chevron-up';
let measurementSystem = data.user?.measurement_system || 'metric';
let measurementSystem: string = 'metric';
let expandedCategories = new Set();
let stats: {
@@ -87,10 +87,16 @@
activity_elevation: number;
} | null;
const user: User = data.user;
const adventures: Location[] = data.adventures;
const collections: Collection[] = data.collections;
stats = data.stats || null;
let user: User = data.user;
let adventures: Location[] = data.adventures;
let collections: Collection[] = data.collections;
// Keep values reactive when `data` changes (client navigation between params)
$: user = data.user;
$: adventures = data.adventures;
$: collections = data.collections;
$: measurementSystem = data.user?.measurement_system || 'metric';
$: stats = data.stats || null;
// Activity category configurations
const categoryConfig: Record<