diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 27c1e41..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 @." }, - "bioExampleCollaborator": { - "message": "I collaborate with $1" - }, - "bioExampleFriend": { - "message": "My friend $1" - }, - "bioExampleOpenSource": { - "message": "I work on open source with $1" - }, "copyBioExample": { "message": "Copy" }, diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 2a23e89..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 用户名,保留 @。" }, - "bioExampleCollaborator": { - "message": "我的合作伙伴 $1" - }, - "bioExampleFriend": { - "message": "我的朋友 $1" - }, - "bioExampleOpenSource": { - "message": "我和 $1 一起做开源" - }, "copyBioExample": { "message": "复制" }, diff --git a/src/extension/city-roads.ts b/src/extension/city-roads.ts index c969aa3..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 = ['bioExampleCollaborator', 'bioExampleFriend', 'bioExampleOpenSource'] 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');