Skip to content

Commit a95f95c

Browse files
authored
feat: update campaign titles and links in translations (#645)
- Revised campaign titles in English, Japanese, and Chinese translations to reflect the new name "TiDB Cloud Essential" and its public preview status. - Updated links in the campaign section to direct users to the new blog post about TiDB Cloud Essential.
1 parent 83275bb commit a95f95c

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

locale/en/translation.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@
176176
"viewLatestLTSVersion": "View latest LTS version docs"
177177
},
178178
"campaign": {
179-
"link": "https://tidbcloud.com/",
180-
"titleBeforeStarter": "TiDB Cloud Serverless is now ",
181-
"titleAfterStarter": "! Same experience, new name.",
182-
"end": "Try it out →"
179+
"title1": "TiDB Cloud Essential",
180+
"title2": "is now in public preview.",
181+
"end": "Try it out →",
182+
"link": "https://tidbcloud.com/"
183183
}
184184
},
185185
"campaign": {

locale/ja/translation.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@
159159
"viewLatestLTSVersion": "最新の LTS バージョンのドキュメントを表示する"
160160
},
161161
"campaign": {
162-
"link": "https://tidbcloud.com/",
163-
"titleBeforeStarter": "TiDB Cloud Serverless が ",
164-
"titleAfterStarter": " に変わりました!使いやすさはそのままに、名前が新しくなりました。",
165-
"end": "ぜひお試しください →"
162+
"title1": "TiDB Cloud Essential",
163+
"title2": "はパブリックプレビュー中です。",
164+
"end": "ぜひお試しください →",
165+
"link": "https://tidbcloud.com/"
166166
},
167167
"autoTrans": {
168-
"titleBeforeStarter": "TiDB Cloud Serverless が ",
169-
"titleAfterStarter": " に変わりました!このページは自動翻訳されたものです。",
168+
"title1": "TiDB Cloud Essential",
169+
"title2": "はパブリックプレビュー中です。このページは自動翻訳されたものです。",
170170
"end": "原文はこちらからご覧ください。"
171171
}
172172
},

locale/zh/translation.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@
174174
"viewLatestLTSVersion": "查看最新 LTS 版本文档"
175175
},
176176
"campaign": {
177-
"link": "https://tidbcloud.com/",
178-
"titleBeforeStarter": "TiDB Cloud Serverless 现已更名为 ",
179-
"titleAfterStarter": "!体验不变,名字焕新。",
180-
"end": "立即试用 →"
177+
"title1": "TiDB Cloud Essential",
178+
"title2": "开放公测中。",
179+
"end": "立即试用 →",
180+
"link": "https://tidbcloud.com/"
181181
},
182182
"autoTrans": {
183-
"titleBeforeStarter": "TiDB Cloud Serverless 现已更名为 ",
184-
"titleAfterStarter": "此页面由 AI 自动翻译,英文原文请见",
183+
"title1": "TiDB Cloud Essential",
184+
"title2": "开放公测中。此页面由 AI 自动翻译,英文原文请见",
185185
"end": "此处。"
186186
}
187187
},

src/components/Layout/Header.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,13 @@ const HeaderBanner = (props: HeaderProps) => {
142142
// }
143143
logo={"📣"}
144144
textList={[
145-
t("banner.autoTrans.titleBeforeStarter"),
146145
<BlueAnchorLink
147-
to="https://www.pingcap.com/blog/introducing-tidb-cloud-starter-auto-scaling-plan-renamed/ "
146+
to="https://www.pingcap.com/blog/tidb-cloud-essential-now-available-public-preview-aws-alibaba-cloud/"
148147
target="_blank"
149148
>
150-
Starter
149+
{t("banner.autoTrans.title1")}
151150
</BlueAnchorLink>,
152-
t("banner.autoTrans.titleAfterStarter"),
151+
t("banner.autoTrans.title2"),
153152
<BlueAnchorLink to={urlAutoTranslation} target="_blank">
154153
{t("banner.autoTrans.end")}
155154
</BlueAnchorLink>,
@@ -162,14 +161,13 @@ const HeaderBanner = (props: HeaderProps) => {
162161
<Banner
163162
logo={"📣"}
164163
textList={[
165-
t("banner.campaign.titleBeforeStarter"),
166164
<BlueAnchorLink
167-
to="https://www.pingcap.com/blog/introducing-tidb-cloud-starter-auto-scaling-plan-renamed/ "
165+
to="https://www.pingcap.com/blog/tidb-cloud-essential-now-available-public-preview-aws-alibaba-cloud/"
168166
target="_blank"
169167
>
170-
TiDB Cloud Starter
168+
{t("banner.campaign.title1")}
171169
</BlueAnchorLink>,
172-
t("banner.campaign.titleAfterStarter"),
170+
t("banner.campaign.title2"),
173171
<BlueAnchorLink to={t("banner.campaign.link")} target="_blank">
174172
{t("banner.campaign.end")}
175173
</BlueAnchorLink>,

src/components/Link.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const BlueAnchorLink = (
6262
style={{
6363
color: "var(--tiui-palette-secondary)",
6464
fontSize: "14px",
65+
padding: "0 3px",
6566
...props.style,
6667
}}
6768
/>

0 commit comments

Comments
 (0)