Clarify app update notice copy
This commit is contained in:
1 parent
858034cf8a
commit
d7db40eaae
1 file changed
+2
-2
@@ -57,7 +57,7 @@ const noticeCopy: Record<PwaUpdateNoticeKind, { title: string; description: stri
|
||||
},
|
||||
updated: {
|
||||
title: "EdgeEver 已更新",
|
||||
description: "当前 PWA 已是最新版本。",
|
||||
description: "当前应用已是最新版本。",
|
||||
},
|
||||
"reload-required": {
|
||||
title: "新版本已就绪",
|
||||
@@ -67,7 +67,7 @@ const noticeCopy: Record<PwaUpdateNoticeKind, { title: string; description: stri
|
||||
|
||||
const getNoticeDescription = (notice: Notice, fallbackDescription: string) => {
|
||||
if (notice.kind === "updated" && notice.buildLabel) {
|
||||
return `当前 PWA 已是最新版本(${notice.buildLabel})。`;
|
||||
return `当前应用已是最新版本(${notice.buildLabel})。`;
|
||||
}
|
||||
|
||||
return fallbackDescription;
|
||||
|
||||
Reference in new issue
Block a user