From c8bdb918f3021ab7f496ca001cf1b5c787c2f4a6 Mon Sep 17 00:00:00 2001 From: jonny Date: Thu, 5 Mar 2026 18:17:36 +0800 Subject: [PATCH] Display supported Memos version in popup Add a localized notice for supported Memos versions and render it in the extension popup. Introduce the "supportedMemosVersion" message in en and zh_CN (shows compatibility: v0.24.0+ and tested versions), add a corresponding div to popup.html, and wire it up in js/i18n.js so the text is populated via i18n. --- _locales/en/messages.json | 3 +++ _locales/zh_CN/messages.json | 3 +++ js/i18n.js | 2 ++ popup.html | 1 + 4 files changed, 9 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 413a9a2..9acc0df 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -17,6 +17,9 @@ "saveBtn":{ "message": "Save" }, + "supportedMemosVersion": { + "message": "Compatible with Memos v0.24.0+ (tested: 0.24.0 / 0.25.0 / 0.26.x)" + }, "placeApiUrl":{ "message": "Memos site URL" }, diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index c7c8966..e483c71 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -20,6 +20,9 @@ "saveBtn":{ "message": "保存" }, + "supportedMemosVersion": { + "message": "兼容 Memos v0.24.0+(已测试:0.24.0 / 0.25.0 / 0.26.x)" + }, "placeApiUrl":{ "message": "请填入 Memos 主页网址" }, diff --git a/js/i18n.js b/js/i18n.js index 00ff52b..6d6946f 100644 --- a/js/i18n.js +++ b/js/i18n.js @@ -20,6 +20,8 @@ function setTitle(id, messageKey) { setText("saveKey", "saveBtn") setText("saveTag", "saveBtn") +setText("supportedMemosVersion", "supportedMemosVersion") + setPlaceholder("apiUrl", "placeApiUrl") setPlaceholder("apiTokens", "placeApiTokens") setPlaceholder("content", "placeContent") diff --git a/popup.html b/popup.html index b42bda9..4e2cfe7 100644 --- a/popup.html +++ b/popup.html @@ -38,6 +38,7 @@ required /> +