From 651a198898935c9e66e3c2cf73389dbce68eb760 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Mon, 4 Mar 2024 22:03:42 +0800 Subject: [PATCH 1/3] fix: translation placeholder (#1503) --- src/messages/en.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/messages/en.json b/src/messages/en.json index 8f572513..5957cc2c 100644 --- a/src/messages/en.json +++ b/src/messages/en.json @@ -6,7 +6,7 @@ "You are here to be the first patron": "You are here to be the first patron.", "You are here to be the first tipper": "You are here to be the first tipper.", "Filter out possible low-quality content based on AI ratings": "Filter out possible low-quality content based on AI ratings.", - "link post-vs-page" : "https://wordpress.com/zh-cn/support/post-vs-page/", + "link post-vs-page": "https://wordpress.com/zh-cn/support/post-vs-page/", "delete_confirmation": "Are you sure you want to DELETE this {context}?", "description": "An open-source creative community written on the blockchain.", "features": { @@ -73,7 +73,7 @@ "Subdomain Available": "Subdomain Available.", "Subdomain Unavailable": "Subdomain Unavailable.", "Published a new post on my blockchain blog: {title} Check it out now!": "Published a new post on my blockchain blog: {title}. Check it out now!", - "Please upload at least one image" : "Please upload at least one image.", + "Please upload at least one image": "Please upload at least one image.", "comma": ".", "xLog's open design allows it to integrate with many other open protocols and applications without friction": "xLog's open design allows it to integrate with many other open protocols and applications without friction.", "Let's talk about xLog, whether to praise or criticize it": "Let's talk about xLog, whether to praise or criticize it.", @@ -115,5 +115,6 @@ "ja": "Japanese", "zh": "Chinese", "zh-TW": "Traditional Chinese", - "Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks" + "Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks", + "Become a patron of {name}": "Become a patron of {name}" } From 218039a0bc9ceb0e01c6c7b5233311a4d701a7a3 Mon Sep 17 00:00:00 2001 From: Zero King Date: Mon, 4 Mar 2024 22:04:30 +0800 Subject: [PATCH 2/3] fix: browser detection in BackToTopFAB (#1502) --- src/components/site/BackToTopFAB.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/site/BackToTopFAB.tsx b/src/components/site/BackToTopFAB.tsx index 8ec39b45..9bceb91b 100644 --- a/src/components/site/BackToTopFAB.tsx +++ b/src/components/site/BackToTopFAB.tsx @@ -7,7 +7,7 @@ import { throttle } from "~/lib/utils" import { FABBase } from "../ui/FAB" const isShouldShow = () => - typeof window !== undefined && + typeof window !== "undefined" && document.documentElement.scrollTop > document.documentElement.clientHeight export const BackToTopFAB = () => { From a789e14a34a58470a260f0090924194c17961f71 Mon Sep 17 00:00:00 2001 From: Zero King Date: Mon, 4 Mar 2024 22:05:14 +0800 Subject: [PATCH 3/3] fix: simplify keyword list conditional (#1501) --- src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx b/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx index bdb11a9e..f42b4bf6 100644 --- a/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx +++ b/src/app/[locale]/(home)/(activities)/topic/[topic]/page.tsx @@ -55,7 +55,7 @@ export default async function Topic({ {info?.includeTags[0]}

{t(info?.description || "")}

- {info?.includeKeywords?.length || 0 > 0 ? ( + {info?.includeKeywords?.length ? (

{t("Topic Keywords")}: {info?.includeKeywords?.join(", ")}