Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
9 changes: 0 additions & 9 deletions public/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,15 +458,6 @@
"bioExamplesHint": {
"message": "复制一句到你的 Bio,把 @username 换成对方的 GitHub 用户名,保留 @。"
},
"bioExampleCollaborator": {
"message": "我的合作伙伴 $1"
},
"bioExampleFriend": {
"message": "我的朋友 $1"
},
"bioExampleOpenSource": {
"message": "我和 $1 一起做开源"
},
"copyBioExample": {
"message": "复制"
},
Expand Down
9 changes: 7 additions & 2 deletions src/extension/city-roads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading