@@ -55,24 +54,24 @@
- {#if useAccount}
-
- {/if}
+
{/if}
diff --git a/src/components/organisms/levels/search/TagSearchTab.svelte b/src/components/organisms/levels/search/TagSearchTab.svelte
index f18485a1..269270e3 100644
--- a/src/components/organisms/levels/search/TagSearchTab.svelte
+++ b/src/components/organisms/levels/search/TagSearchTab.svelte
@@ -6,7 +6,7 @@
{#each tagGroups as group}
-
+
{/each}
diff --git a/src/routes/auth/signin/+page.svelte b/src/routes/auth/signin/+page.svelte
index 613f1958..99dccb09 100644
--- a/src/routes/auth/signin/+page.svelte
+++ b/src/routes/auth/signin/+page.svelte
@@ -8,33 +8,33 @@
-
+
diff --git a/src/routes/auth/signup/+page.svelte b/src/routes/auth/signup/+page.svelte
index d80666f8..59f20fbd 100644
--- a/src/routes/auth/signup/+page.svelte
+++ b/src/routes/auth/signup/+page.svelte
@@ -55,41 +55,41 @@
-
+
-
+
{#if signupFailed && !hasAgreed()}
-
+
{/if}
diff --git a/src/routes/rankings/+page.svelte b/src/routes/rankings/+page.svelte
index 431c4ca5..1f541029 100644
--- a/src/routes/rankings/+page.svelte
+++ b/src/routes/rankings/+page.svelte
@@ -61,7 +61,7 @@
-
+
{#if browser}
diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts
index e48a32b9..ebc2a84f 100644
--- a/src/utils/i18n.ts
+++ b/src/utils/i18n.ts
@@ -113,13 +113,29 @@ export const translate = (
[sectionName, key] = rawKey;
}
- if (!l) return key;
+ if (!l) {
+ console.error(`received null or empty language code.`);
+ return key;
+ }
+
const lang = langData[l];
- if (!lang) return key;
+ if (!lang) {
+ console.error(`'${l}' is not a valid language code.`);
+ return key;
+ }
+
const section = lang[sectionName];
- if (!section) return key;
+ if (!section) {
+ console.error(`'${sectionName}' is not a valid section name.`);
+ return key;
+ }
+
const message = section.getMessage(key);
- if (!message?.value) return key;
+ if (!message?.value) {
+ console.error(`message value did not exist for key '${key}'. wrong key?`);
+ return key;
+ }
+
const result = section.formatPattern(message.value, args);
if (escape) escapeHtmlTags(result);
return result;