From 284df0796d613ab85acc30661b79e1b44f2996c7 Mon Sep 17 00:00:00 2001 From: suu <46421931+0suu@users.noreply.github.com> Date: Sun, 23 Nov 2025 10:48:08 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E7=94=BB=E9=9D=A2=E5=86=85?= =?UTF-8?q?=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E5=80=A4?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/i18n.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/i18n.ts b/src/renderer/src/i18n.ts index f0cec87..5d6099e 100644 --- a/src/renderer/src/i18n.ts +++ b/src/renderer/src/i18n.ts @@ -1,3 +1,7 @@ +import packageJson from "../../../package.json"; + +const APP_VERSION = packageJson?.version || "0.0.0"; + export type Language = "en" | "ja"; type Dictionary = Record; @@ -5,7 +9,7 @@ type Dictionary = Record; const en: Dictionary = { // Generic "App Title": "SwitchBot Client", - "Footer Version": "SwitchBot PC Client v0.0.1", + "Footer Version": `SwitchBot PC Client v${APP_VERSION}`, Devices: "Devices", Settings: "Settings", Theme: "Theme", @@ -125,7 +129,7 @@ const en: Dictionary = { const ja: Dictionary = { // Generic "App Title": "SwitchBot クライアント", - "Footer Version": "SwitchBot PC クライアント v0.0.1", + "Footer Version": `SwitchBot PC クライアント v${APP_VERSION}`, Devices: "デバイス", Settings: "設定", Theme: "テーマ",