From 585ed3ede7eddb4edb1da3e403b92896d2e66067 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Mon, 23 Nov 2026 11:47:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=A9=20Bio=20=E4=BE=8B=E5=8F=A5?= =?UTF-8?q?=E8=87=AA=E7=84=B6=E6=8E=A5=E7=BB=AD=E8=87=AA=E6=88=91=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/_locales/en/messages.json | 12 ++++++------ public/_locales/zh_CN/messages.json | 12 ++++++------ src/extension/city-roads.ts | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 27c1e41..24a823f 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -458,14 +458,14 @@ "bioExamplesHint": { "message": "Copy a line to your bio. Replace @username with the person’s GitHub username and keep the @." }, - "bioExampleCollaborator": { - "message": "I collaborate with $1" - }, - "bioExampleFriend": { - "message": "My friend $1" + "bioExampleRecommendation": { + "message": "I also like what $1 is building" }, "bioExampleOpenSource": { - "message": "I work on open source with $1" + "message": "I’ve worked on open source with $1" + }, + "bioExampleThanks": { + "message": "I’ve had help from $1 with my projects" }, "copyBioExample": { "message": "Copy" diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 2a23e89..a24ada2 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -458,14 +458,14 @@ "bioExamplesHint": { "message": "复制一句到你的 Bio,把 @username 换成对方的 GitHub 用户名,保留 @。" }, - "bioExampleCollaborator": { - "message": "我的合作伙伴 $1" - }, - "bioExampleFriend": { - "message": "我的朋友 $1" + "bioExampleRecommendation": { + "message": "也喜欢 $1 做的项目" }, "bioExampleOpenSource": { - "message": "我和 $1 一起做开源" + "message": "和 $1 一起做过开源项目" + }, + "bioExampleThanks": { + "message": "做项目时,多亏 $1 帮忙" }, "copyBioExample": { "message": "复制" diff --git a/src/extension/city-roads.ts b/src/extension/city-roads.ts index c969aa3..7d261a4 100644 --- a/src/extension/city-roads.ts +++ b/src/extension/city-roads.ts @@ -107,7 +107,7 @@ export function createCityRoads(host: HTMLElement, options: RoadOptions) { const context = options.currentContext(), language = options.language(); const hint = isProfileOwner(context) ? 'emptyExitOwner' : 'emptyExitVisitor'; list.replaceChildren(); - const phrases = ['bioExampleCollaborator', 'bioExampleFriend', 'bioExampleOpenSource'] as const; + const phrases = ['bioExampleRecommendation', 'bioExampleOpenSource', 'bioExampleThanks'] as const; exampleList.replaceChildren(...phrases.map((phrase, index) => { const row = document.createElement('li'); const example = document.createElement('span'); From 55a57c634bc81303e67bf677a5a39e456822b0c3 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Mon, 23 Nov 2026 12:01:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E8=8B=B1=E6=96=87=20Bio=20=E4=BE=8B=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/_locales/en/messages.json | 9 --------- public/_locales/zh_CN/messages.json | 9 --------- src/extension/city-roads.ts | 9 +++++++-- 3 files changed, 7 insertions(+), 20 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 24a823f..023a027 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -458,15 +458,6 @@ "bioExamplesHint": { "message": "Copy a line to your bio. Replace @username with the person’s GitHub username and keep the @." }, - "bioExampleRecommendation": { - "message": "I also like what $1 is building" - }, - "bioExampleOpenSource": { - "message": "I’ve worked on open source with $1" - }, - "bioExampleThanks": { - "message": "I’ve had help from $1 with my projects" - }, "copyBioExample": { "message": "Copy" }, diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index a24ada2..16689d7 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -458,15 +458,6 @@ "bioExamplesHint": { "message": "复制一句到你的 Bio,把 @username 换成对方的 GitHub 用户名,保留 @。" }, - "bioExampleRecommendation": { - "message": "也喜欢 $1 做的项目" - }, - "bioExampleOpenSource": { - "message": "和 $1 一起做过开源项目" - }, - "bioExampleThanks": { - "message": "做项目时,多亏 $1 帮忙" - }, "copyBioExample": { "message": "复制" }, diff --git a/src/extension/city-roads.ts b/src/extension/city-roads.ts index 7d261a4..d89f909 100644 --- a/src/extension/city-roads.ts +++ b/src/extension/city-roads.ts @@ -107,12 +107,17 @@ export function createCityRoads(host: HTMLElement, options: RoadOptions) { const context = options.currentContext(), language = options.language(); const hint = isProfileOwner(context) ? 'emptyExitOwner' : 'emptyExitVisitor'; list.replaceChildren(); - const phrases = ['bioExampleRecommendation', 'bioExampleOpenSource', 'bioExampleThanks'] as const; + const phrases = [ + 'I also like what @username is building', + 'I’ve worked on open source with @username', + 'I’ve had help from @username with my projects', + ]; exampleList.replaceChildren(...phrases.map((phrase, index) => { const row = document.createElement('li'); const example = document.createElement('span'); example.id = `road-bio-example-${index}`; - example.textContent = text(language, phrase, ['@username']); + example.lang = 'en'; + example.textContent = phrase; const copy = document.createElement('button'); copy.type = 'button'; copy.textContent = text(language, 'copyBioExample');