Skip to content

Commit 864f45f

Browse files
committed
refactor(settings): localize clipboard button labels
1 parent 130beb1 commit 864f45f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/routes/settings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import QRCode from "qrcode"
33
import { useEffect, useState, useRef } from "react"
44
import { APP_CONFIG, THEMES } from "../config"
55
import serverConfig from "../server-config.json"
6+
import { t } from "../utils/i18n"
67
export const Route = createFileRoute("/settings")({
78
component: SettingsPage,
89
})
@@ -377,7 +378,7 @@ function SettingsPage() {
377378
}
378379
}}
379380
>
380-
{copied ? "Copied! ✅" : "Copy Link"}
381+
{copied ? t("settings", "copied") : t("settings", "copyLink")}
381382
</button>
382383
</div>
383384
</div>

src/utils/i18n.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
export const i18n = {
66
en: {
7+
settings: {
8+
copyLink: "Copy Link",
9+
copied: "Copied!",
10+
},
711
screenMirror: {
812
ariaLabel: "Remote desktop screen share",
913
connecting: "Connecting to host...",

0 commit comments

Comments
 (0)