From 8bdc7543d50770b08e82226f321cc5672e2a1f3a Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Thu, 16 Apr 2026 15:31:03 -0500 Subject: [PATCH] translation strings --- src/webpage/localuser.ts | 8 ++++---- src/webpage/user.ts | 4 +++- translations/en.json | 7 +++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 942b23b..93a838f 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -3108,15 +3108,15 @@ class Localuser { actConDiv.append(dispRow); const dispText = document.createElement("span"); - dispText.textContent = "Display on profile"; + dispText.textContent = I18n.connections.display(); dispRow.append(dispText, input); const remove = document.createElement("button"); - remove.textContent = "Delete Connection"; + remove.textContent = I18n.connections.delete(); actConDiv.append(remove); remove.onclick = () => { - const d = new Dialog("Are you sure?"); - d.options.addText("If you remove this connection, you can't undo it"); + const d = new Dialog(I18n.connections.sure()); + d.options.addText(I18n.connections.sureDesc()); const row = d.options.addOptions("", {ltr: true}); row.addButtonInput("", I18n.yes(), async () => { await fetch(this.info.api + "/users/@me/connections/" + con.type + "/" + con.id, { diff --git a/src/webpage/user.ts b/src/webpage/user.ts index 67a4c68..7d39461 100644 --- a/src/webpage/user.ts +++ b/src/webpage/user.ts @@ -1447,7 +1447,9 @@ class User extends SnowFlake { nameDateBox.append(username); if (con.metadata && con.metadata.created_at) { const len = document.createElement("span"); - len.textContent = `Member since: ${new Date(con.metadata.created_at).toDateString()}`; + len.textContent = I18n.connections.since( + new Date(con.metadata.created_at).toDateString(), + ); nameDateBox.append(len); } conDiv.append(nameDateBox); diff --git a/translations/en.json b/translations/en.json index b86e21b..480c688 100644 --- a/translations/en.json +++ b/translations/en.json @@ -874,6 +874,13 @@ "regi":"Spacebar instances are no longer officially supported by Fermi, while it'll likely still work, Harmony is recommended. Continue?", "in":"Spacebar instances are no longer officially supported by Fermi, while it'll likely still work, Harmony is recommended. This message should only show once." }, + "connections":{ + "since":"Member since: $1", + "display":"Display on profile: ", + "delete":"Delete Connection", + "sure":"Are you sure?", + "sureDesc":"If you remove this connection, you can't undo it" + }, "unpinMessage": "Unpin message", "updateAv": "Updates available", "uploadBanner": "Upload banner:",