aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2026-01-06 15:39:04 -0500
committerAdrien Hopkins <[email protected]>2026-01-06 15:39:04 -0500
commit4bc94247c382898c0e0d76439fe0bdce68755d69 (patch)
treefaf4de62924fc09b9fac9448295a48b130c1ba69 /src/routes
parent8ad0a56ae11349d92c6b06ff16e8151004756747 (diff)
downloadcoinos-ui-4bc94247c382898c0e0d76439fe0bdce68755d69.tar.gz
coinos-ui-4bc94247c382898c0e0d76439fe0bdce68755d69.zip
Add translations for new text
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/dm/+page.svelte13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/routes/(app)/dm/+page.svelte b/src/routes/(app)/dm/+page.svelte
index 7578c27c..32b39def 100644
--- a/src/routes/(app)/dm/+page.svelte
+++ b/src/routes/(app)/dm/+page.svelte
@@ -385,9 +385,12 @@
<div class="super-container">
<div class={"sidebar " + ($theme === "light" ? "light-sidebar" : "dark-sidebar")}>
- <h2 class="text-xl chat-header">{creatingNewChat ? "New Chat" : "Chats"}<button class={"chat-btn push-right " + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + (creatingNewChat ? ($theme === "light" ? " light-selected" : " dark-selected") : "")} on:click={() => {creatingNewChat = !creatingNewChat; selectedChat = null}}>+</button></h2>
+ <h2 class="text-xl chat-header">
+ {creatingNewChat ? $t("dm.newChatHeader") : $t("dm.chatHeader")}
+ <button class={"chat-btn push-right " + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + (creatingNewChat ? ($theme === "light" ? " light-selected" : " dark-selected") : "")} on:click={() => {creatingNewChat = !creatingNewChat; selectedChat = null}}>+</button>
+ </h2>
{#if creatingNewChat}
- <input type="text" class="short" bind:value={searchQuery} placeholder="username, nip-05 or pubkey">
+ <input type="text" class="short" bind:value={searchQuery} placeholder="{$t("dm.searchPrompt")}">
{/if}
{#if !creatingNewChat}
{#each chats as c}
@@ -397,16 +400,16 @@
{/each}
{:else if searchQuery !== ""}
<button class={"chat-btn tall-btn " + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn")} on:click={() => selectChatUsername(searchQuery)}>
- <span class="text-xl">Find by username</span>
+ <span class="text-xl">{$t("dm.findByUsername")}</span>
</button>
{#if searchQuery.includes(".")}
<button class={"chat-btn tall-btn " + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn")} on:click={() => selectChatNip05(searchQuery)}>
- <span class="text-xl">Find by NIP-05</span>
+ <span class="text-xl">{$t("dm.findByNIP05")}</span>
</button>
{/if}
{#if searchQuery.length === 64 || searchQuery.slice(0, 4) === "npub"}
<button class={"chat-btn tall-btn " + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn")} on:click={() => selectChatPubkey(searchQuery)}>
- <span class="text-xl">Find by pubkey</span>
+ <span class="text-xl">{$t("dm.findByPubkey")}</span>
</button>
{/if}
{/if}