diff --git a/src/lib/filters.ts b/src/lib/filters.ts
index 2493421..60619a6 100644
--- a/src/lib/filters.ts
+++ b/src/lib/filters.ts
@@ -1,6 +1,10 @@
+// Will be automatically chosen on refresh as the filtered category
+export const defaultFilterCategory = "All";
+
export const filter = (things, { keyword, onlyWishList, category }) => {
let filtered = things;
- if (category)
+
+ if (category && category.toLowerCase() !== "all")
filtered = filtered.filter(thing => thing.categories.includes(category));
if (keyword.length > 0)
filtered = filtered.filter(thing => thing.name.toLowerCase().includes(keyword.toLowerCase()));
@@ -13,5 +17,5 @@ export const filter = (things, { keyword, onlyWishList, category }) => {
}
export const filterByCategory = (things, category) => {
- return things.filter(thing => thing.categories?.includes(category));
+ return category.toLowerCase() === "all" ? things : things.filter(thing => thing.categories?.includes(category));
}
\ No newline at end of file
diff --git a/src/lib/foundation/Chooser.svelte b/src/lib/foundation/Chooser.svelte
index 104237f..36473fe 100644
--- a/src/lib/foundation/Chooser.svelte
+++ b/src/lib/foundation/Chooser.svelte
@@ -1,11 +1,15 @@
\ No newline at end of file
diff --git a/src/lib/layout/Header.svelte b/src/lib/layout/Header.svelte
index 5132870..ed2714c 100644
--- a/src/lib/layout/Header.svelte
+++ b/src/lib/layout/Header.svelte
@@ -1,3 +1,7 @@
+
+
@@ -7,7 +11,7 @@
-
HOME
+
{$t("Button.Home")}
@@ -16,7 +20,16 @@
-
+
+ {#each locales as localeKey}
+
+ {/each}
+
PVD Things
\ No newline at end of file
diff --git a/src/lib/things/Thing.svelte b/src/lib/things/Thing.svelte
index 6934fd2..b05ff26 100644
--- a/src/lib/things/Thing.svelte
+++ b/src/lib/things/Thing.svelte
@@ -1,5 +1,7 @@