Skip to content

Commit 98a95cd

Browse files
authored
Merge pull request processing#2471 from Akhilbisht798/SEO#2251
changed title for better seo
2 parents 640fbcd + 20bc34f commit 98a95cd

15 files changed

+21
-0
lines changed

client/modules/User/components/Collection.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ class Collection extends React.Component {
124124
}
125125

126126
getTitle() {
127+
if (this.hasCollection()) {
128+
return `${this.props.t('Common.SiteName')} | ${this.getCollectionName()}`;
129+
}
127130
if (this.props.username === this.props.user.username) {
128131
return this.props.t('Collection.Title');
129132
}
@@ -138,6 +141,10 @@ class Collection extends React.Component {
138141
: this.props.user.username;
139142
}
140143

144+
getCollectionName() {
145+
return this.props.collection.name;
146+
}
147+
141148
isOwner() {
142149
let isOwner = false;
143150

translations/locales/de/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"Delete": "Löschen"
217217
},
218218
"Common": {
219+
"SiteName": "p5.js Web Editor",
219220
"Error": "Fehler",
220221
"ErrorARIA": "Fehler",
221222
"Save": "Speichern",

translations/locales/en-US/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
"Delete": "Delete"
226226
},
227227
"Common": {
228+
"SiteName": "p5.js Web Editor",
228229
"Error": "Error",
229230
"ErrorARIA": "Error",
230231
"Save": "Save",

translations/locales/es-419/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"Delete": "Borrar"
217217
},
218218
"Common": {
219+
"SiteName": "Editor Web p5.js",
219220
"Error": "Error",
220221
"ErrorARIA": "Error",
221222
"Save": "Guardar",

translations/locales/fr-CA/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
"Delete": "Supprimer"
220220
},
221221
"Common": {
222+
"SiteName": "Éditeur web p5.js",
222223
"Error": "Erreur",
223224
"ErrorARIA": "Erreur",
224225
"Save": "Sauvegarder",

translations/locales/hi/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"Delete": "मिटाना"
217217
},
218218
"Common": {
219+
"SiteName": "p5.js वेब एडिटर",
219220
"Error": "एरर",
220221
"ErrorARIA": "एरर",
221222
"Save": "सेव",

translations/locales/it/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
"Delete": "Cancella"
223223
},
224224
"Common": {
225+
"SiteName": "p5.js Web Editor",
225226
"Error": "Errore",
226227
"ErrorARIA": "Errore",
227228
"Save": "Salva",

translations/locales/ja/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"Delete": "削除"
217217
},
218218
"Common": {
219+
"SiteName": "p5.js Web Editor",
219220
"Error": "エラー",
220221
"ErrorARIA": "エラー",
221222
"Save": "保存",

translations/locales/ko/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
"Delete": "Delete"
205205
},
206206
"Common": {
207+
"SiteName": "p5.js 웹에디터",
207208
"Error": "에러",
208209
"ErrorARIA": "에러",
209210
"Save": "저장",

translations/locales/pt-BR/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"Delete": "Apagar"
217217
},
218218
"Common": {
219+
"SiteName": "Editor de Web p5.js",
219220
"Error": "Erro",
220221
"ErrorARIA": "Erro",
221222
"Save": "Salvar",

translations/locales/sv/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
"Delete": "Radera"
220220
},
221221
"Common": {
222+
"SiteName": "p5.js Webb editor",
222223
"Error": "Error",
223224
"ErrorARIA": "Error",
224225
"Save": "Spara",

translations/locales/tr/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@
222222
"Delete": "Sil"
223223
},
224224
"Common": {
225+
"SiteName": "p5.js Web Editör",
225226
"Error": "Hata",
226227
"ErrorARIA": "Hata",
227228
"Save": "Kaydet",

translations/locales/uk-UA/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
"Delete": "Видалити"
219219
},
220220
"Common": {
221+
"SiteName": "p5.js Web Editor",
221222
"Error": "Помилка",
222223
"ErrorARIA": "Помилка",
223224
"Save": "Зберегти",

translations/locales/zh-CN/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
"Delete": "删除"
220220
},
221221
"Common": {
222+
"SiteName": "p5.js 在线编辑器",
222223
"Error": "错误",
223224
"ErrorARIA": "错误",
224225
"Save": "保存",

translations/locales/zh-TW/translations.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
"Delete": "刪除"
220220
},
221221
"Common": {
222+
"SiteName": "p5.js Web Editor",
222223
"Error": "錯誤",
223224
"ErrorARIA": "錯誤",
224225
"Save": "儲存",

0 commit comments

Comments
 (0)