feat(update): 应用内更新提示支持英文 release notes

This commit is contained in:
t8y2 committed 2026-07-07 00:26:56 +08:00
1 parent f45011977f
commit 9cbe857a2a
11 files changed
+214 -20

No files matched your search

@@ -6,6 +6,7 @@ import * as api from "@/lib/backend/api";
import { useSettingsStore } from "@/stores/settingsStore";
import type { UpdateDownloadSource as SettingsUpdateDownloadSource } from "@/stores/settingsStore";
import type { UpdateDownloadProgress } from "@/lib/backend/tauri";
import { currentLocale } from "@/i18n";
export function shouldOpenUpdateDialog(options: { silent?: boolean }) {
return options.silent !== true;
@@ -74,7 +75,7 @@ export function useAppUpdater() {
checkingUpdates.value = true;
updateCheckMessage.value = "";
try {
const info = await api.checkForUpdates();
const info = await api.checkForUpdates(currentLocale());
updateInfo.value = info;
if (info.update_available) {
if (shouldOpenUpdateDialog({ silent: options.silent })) {