Skip to content

Commit

Permalink
fix: broken translations
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 14, 2023
1 parent 4cca850 commit 9cfa24c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/common/DeleteConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DeleteConfirmationModal = ({
return (
<Modal open={open} setOpen={setOpen}>
<div className="px-5 py-4 space-y-4">
<p>{t("delete_confirmation", { context: type })}</p>
<p>{t("delete_confirmation", { context: t(type) })}</p>
<div className="flex justify-end space-x-2">
<Button variant="secondary" onClick={() => setOpen(false)}>
<span className="truncate">{t("Cancel")}</span>
Expand Down
6 changes: 3 additions & 3 deletions src/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"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/",
"delete_confirmation_post": "Are you sure you want to DELETE this post?",
"delete_confirmation_page": "Are you sure you want to DELETE this page?",
"delete_confirmation": "Are you sure you want to DELETE this {context}?",
"description": "An <opensourceLink>open-source</opensourceLink> creative community written on the <blockchainLink>blockchain</blockchainLink>.",
"features": {
"Write": {
Expand Down Expand Up @@ -115,5 +114,6 @@
"en": "English",
"ja": "Japanese",
"zh": "Chinese",
"zh-TW": "Traditional Chinese"
"zh-TW": "Traditional Chinese",
"Confirmed by {blockNumber} blocks": "Confirmed by {blockNumber} blocks"
}
3 changes: 1 addition & 2 deletions src/messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@
"Warning": "警告",
"Operators have permissions to enter your dashboard, change your settings(excluding xLog subdomain) and post, modify, delete contents on your site": "シャドー認証では、ダッシュボードへのアクセス、設定の変更(xLog サブドメインを除く)、サイトのコンテンツの公開・修正・削除が可能です。",
"Add": "新規",
"delete_confirmation_post": "この記事を削除してもよろしいですか?",
"delete_confirmation_page": "このページを削除してもよろしいですか?",
"delete_confirmation": "この{context}を削除してもよろしいですか?",
"Advanced Settings": "詳細設定",
"Disable AI-generated summary": "AI が生成した要約を無効化する",
"Pin": "固定する",
Expand Down
5 changes: 3 additions & 2 deletions src/messages/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"comments": "留言",
"Comment": "留言",
"Comments": "留言",
"portfolio": "作品",
"short": "圖文",
"reply": "回覆",
"replies": "回覆",
"like": "",
Expand Down Expand Up @@ -270,8 +272,7 @@
"This month": "本月",
"This week": "本周",
"All time": "全部",
"delete_confirmation_post": "你確認要刪除這篇文章嗎?",
"delete_confirmation_page": "你確認要刪除這個頁面嗎?",
"delete_confirmation": "你確認要刪除這個{context}嗎?",
"Published a new post on my blockchain blog: {title} Check it out now!": "我在我的區塊鏈部落格發佈了一片新的文章《{title}》,快來看看吧!",
"You can subscribe to comments through an RSS reader to receive timely reminders": "你可以通過 RSS 閱讀器訂閱留言,以便及時收到通知。",
"Subscription address:": "訂閱地址:",
Expand Down
7 changes: 3 additions & 4 deletions src/messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"comments": "评论",
"Comment": "评论",
"Comments": "评论",
"portfolio": "作品",
"short": "图文",
"reply": "回复",
"replies": "回复",
"like": "喜欢",
Expand Down Expand Up @@ -102,10 +104,7 @@
"Current Block Height": "当前区块高度",
"Portfolio": "作品",
"Delete": "删除",
"delete_confirmation_post": "你确定要删除这篇文章吗?",
"delete_confirmation_page": "你确定要删除这个页面吗?",
"delete_confirmation_comment": "你确定要删除这个评论吗?",
"delete_confirmation_portfolio": "你确定要删除这个作品吗?",
"delete_confirmation": "你确定要删除这个{context}吗?",
"New Post": "新建文章",
"New Page": "新建页面",
"New Portfolio": "新建作品",
Expand Down

0 comments on commit 9cfa24c

Please sign in to comment.