${t( '%s moved %s from %s to %s on %s', @@ -243,10 +243,6 @@ module.exports = { arrayOfValues.map((values) => { const id = ids.shift(); - const isCommentRelated = - values.type === Notification.Types.COMMENT_CARD || - values.type === Notification.Types.MENTION_IN_COMMENT; - const nextValues = { ...values, id, @@ -254,10 +250,10 @@ module.exports = { boardId: values.card.boardId, cardId: values.card.id, }; - - if (isCommentRelated) { + if (values.comment) { nextValues.commentId = values.comment.id; - } else { + } + if (values.action) { nextValues.actionId = values.action.id; } diff --git a/server/api/helpers/notifications/create-one.js b/server/api/helpers/notifications/create-one.js index 25505492..f4b16c04 100644 --- a/server/api/helpers/notifications/create-one.js +++ b/server/api/helpers/notifications/create-one.js @@ -29,8 +29,8 @@ const buildBodyByFormat = (board, card, notification, actorUser, t) => { switch (notification.type) { case Notification.Types.MOVE_CARD: { - const fromListName = sails.helpers.lists.makeName(notification.data.fromList); - const toListName = sails.helpers.lists.makeName(notification.data.toList); + const fromListName = sails.helpers.lists.resolveName(notification.data.fromList, t); + const toListName = sails.helpers.lists.resolveName(notification.data.toList, t); return { text: t( @@ -152,8 +152,8 @@ const buildAndSendEmail = async ( let html; switch (notification.type) { case Notification.Types.MOVE_CARD: { - const fromListName = sails.helpers.lists.makeName(notification.data.fromList); - const toListName = sails.helpers.lists.makeName(notification.data.toList); + const fromListName = sails.helpers.lists.resolveName(notification.data.fromList, t); + const toListName = sails.helpers.lists.resolveName(notification.data.toList, t); html = `
${t(
'%s moved %s from %s to %s on %s',
@@ -234,13 +234,11 @@ module.exports = {
async fn(inputs) {
const { values } = inputs;
- const isCommentRelated =
- values.type === Notification.Types.COMMENT_CARD ||
- values.type === Notification.Types.MENTION_IN_COMMENT;
-
- if (isCommentRelated) {
+ if (values.comment) {
values.commentId = values.comment.id;
- } else {
+ }
+
+ if (values.action) {
values.actionId = values.action.id;
}
@@ -268,13 +266,12 @@ module.exports = {
boards: [inputs.board],
lists: [inputs.list],
cards: [values.card],
- ...(isCommentRelated
- ? {
- comments: [values.comment],
- }
- : {
- actions: [values.action],
- }),
+ ...(values.comment && {
+ comments: [values.comment],
+ }),
+ ...(values.action && {
+ actions: [values.action],
+ }),
},
}),
user: values.creatorUser,
diff --git a/server/api/helpers/users/get-all-ids.js b/server/api/helpers/users/get-all-ids.js
index 4ad65827..bcad7364 100644
--- a/server/api/helpers/users/get-all-ids.js
+++ b/server/api/helpers/users/get-all-ids.js
@@ -7,6 +7,7 @@ module.exports = {
inputs: {
roleOrRoles: {
type: 'json',
+ required: true,
},
},
diff --git a/server/api/hooks/query-methods/models/Card.js b/server/api/hooks/query-methods/models/Card.js
index 09c1eb9c..e7f52948 100644
--- a/server/api/hooks/query-methods/models/Card.js
+++ b/server/api/hooks/query-methods/models/Card.js
@@ -56,19 +56,12 @@ const getIdsByEndlessListId = async (
const searchParts = buildSearchParts(search);
if (searchParts.length > 0) {
- let ilikeValues = searchParts.map((searchPart) => {
+ const ilikeValues = searchParts.map((searchPart) => {
queryValues.push(searchPart);
return `'%' || $${queryValues.length} || '%'`;
});
- query += ` AND ((card.name ILIKE ALL(ARRAY[${ilikeValues.join(', ')}]))`;
-
- ilikeValues = searchParts.map((searchPart) => {
- queryValues.push(searchPart);
- return `'%' || $${queryValues.length} || '%'`;
- });
-
- query += ` OR (card.description ILIKE ALL(ARRAY[${ilikeValues.join(', ')}])))`;
+ query += ` AND ((card.name ILIKE ALL(ARRAY[${ilikeValues.join(', ')}])) OR (card.description ILIKE ALL(ARRAY[${ilikeValues.join(', ')}])))`;
}
}
}
diff --git a/server/api/models/List.js b/server/api/models/List.js
index ca103dd7..a81d550a 100755
--- a/server/api/models/List.js
+++ b/server/api/models/List.js
@@ -95,6 +95,8 @@ const SortOrders = {
const FINITE_TYPES = [Types.ACTIVE, Types.CLOSED];
+const KANBAN_TYPES = [Types.ACTIVE, Types.CLOSED];
+
const TYPE_STATE_BY_TYPE = {
[Types.ACTIVE]: TypeStates.OPENED,
[Types.CLOSED]: Types.CLOSED,
@@ -119,6 +121,7 @@ module.exports = {
SortFieldNames,
SortOrders,
FINITE_TYPES,
+ KANBAN_TYPES,
TYPE_STATE_BY_TYPE,
COLORS,
diff --git a/server/config/locales/ar-YE.json b/server/config/locales/ar-YE.json
index d13d04a7..f20dd4df 100644
--- a/server/config/locales/ar-YE.json
+++ b/server/config/locales/ar-YE.json
@@ -1,4 +1,5 @@
{
+ "Archive": "أرشيف",
"Card Created": "تم إنشاء البطاقة",
"Card Moved": "تم نقل البطاقة",
"New Comment": "تعليق جديد",
@@ -6,6 +7,7 @@
"This is a test text message!": "هذه رسالة نصية تجريبية!",
"This is a *test* **markdown** `message`!": "هذه *رسالة* **markdown** `تجريبية`!",
"This is a test html message!": "هذه رسالة html تجريبية!",
+ "Trash": "سلة المهملات",
"You Were Added to Card": "تمت إضافتك إلى البطاقة",
"You Were Mentioned in Comment": "تم ذكرك في تعليق",
"%s added you to %s on %s": "%s أضافك إلى %s في %s",
diff --git a/server/config/locales/bg-BG.json b/server/config/locales/bg-BG.json
index a6150f80..27f8ebe9 100644
--- a/server/config/locales/bg-BG.json
+++ b/server/config/locales/bg-BG.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Архив",
"Card Created": "Картата е създадена",
"Card Moved": "Картата е преместена",
"New Comment": "Нов коментар",
@@ -6,6 +7,7 @@
"This is a test text message!": "Това е тестово текстово съобщение!",
"This is a *test* **markdown** `message`!": "Това е *тестово* **markdown** `съобщение`!",
"This is a test html message!": "Това е тестово html съобщение!",
+ "Trash": "Кошче",
"You Were Added to Card": "Бяхте добавени към картата",
"You Were Mentioned in Comment": "Бяхте споменати в коментар",
"%s added you to %s on %s": "%s ви добави към %s на %s",
diff --git a/server/config/locales/ca-ES.json b/server/config/locales/ca-ES.json
index db59f100..5f17959d 100644
--- a/server/config/locales/ca-ES.json
+++ b/server/config/locales/ca-ES.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arxivar",
"Card Created": "Targeta creada",
"Card Moved": "Targeta moguda",
"New Comment": "Comentari nou",
@@ -6,6 +7,7 @@
"This is a test text message!": "Aquest és un missatge de text de prova!",
"This is a *test* **markdown** `message`!": "Aquest és un *missatge* **markdown** `de prova`!",
"This is a test html message!": "Aquest és un missatge html de prova!",
+ "Trash": "Paperera",
"You Were Added to Card": "Has estat afegit a la targeta",
"You Were Mentioned in Comment": "Has estat mencionat en un comentari",
"%s added you to %s on %s": "%s t'ha afegit a %s el %s",
diff --git a/server/config/locales/cs-CZ.json b/server/config/locales/cs-CZ.json
index 1ae03041..b869dab4 100644
--- a/server/config/locales/cs-CZ.json
+++ b/server/config/locales/cs-CZ.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archiv",
"Card Created": "Karta vytvořena",
"Card Moved": "Karta přesunuta",
"New Comment": "Nový komentář",
@@ -6,6 +7,7 @@
"This is a test text message!": "Toto je testovací textová zpráva!",
"This is a *test* **markdown** `message`!": "Toto je *testovací* **markdown** `zpráva`!",
"This is a test html message!": "Toto je testovací html zpráva!",
+ "Trash": "Koš",
"You Were Added to Card": "Byli jste přidáni ke kartě",
"You Were Mentioned in Comment": "Byli jste zmíněni v komentáři",
"%s added you to %s on %s": "%s vás přidal k %s dne %s",
diff --git a/server/config/locales/da-DK.json b/server/config/locales/da-DK.json
index 69b3fcbd..71dc0629 100644
--- a/server/config/locales/da-DK.json
+++ b/server/config/locales/da-DK.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arkiv",
"Card Created": "Kort oprettet",
"Card Moved": "Kort flyttet",
"New Comment": "Ny kommentar",
@@ -6,6 +7,7 @@
"This is a test text message!": "Dette er en test tekstbesked!",
"This is a *test* **markdown** `message`!": "Dette er en *test* **markdown** `besked`!",
"This is a test html message!": "Dette er en test html besked!",
+ "Trash": "Papirkurv",
"You Were Added to Card": "Du blev tilføjet til kortet",
"You Were Mentioned in Comment": "Du blev nævnt i en kommentar",
"%s added you to %s on %s": "%s tilføjede dig til %s den %s",
diff --git a/server/config/locales/de-DE.json b/server/config/locales/de-DE.json
index d54252ef..82f120a5 100644
--- a/server/config/locales/de-DE.json
+++ b/server/config/locales/de-DE.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archiv",
"Card Created": "Karte erstellt",
"Card Moved": "Karte verschoben",
"New Comment": "Neuer Kommentar",
@@ -6,6 +7,7 @@
"This is a test text message!": "Dies ist eine Test-Textnachricht!",
"This is a *test* **markdown** `message`!": "Dies ist eine *Test*-**Markdown**-`Nachricht`!",
"This is a test html message!": "Dies ist eine Test-HTML-Nachricht!",
+ "Trash": "Papierkorb",
"You Were Added to Card": "Sie wurden zur Karte hinzugefügt",
"You Were Mentioned in Comment": "Sie wurden in einem Kommentar erwähnt",
"%s added you to %s on %s": "%s hat Sie zu %s am %s hinzugefügt",
diff --git a/server/config/locales/el-GR.json b/server/config/locales/el-GR.json
index a47964a2..e81cc220 100644
--- a/server/config/locales/el-GR.json
+++ b/server/config/locales/el-GR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Αρχείο",
"Card Created": "Η κάρτα δημιουργήθηκε",
"Card Moved": "Η κάρτα μετακινήθηκε",
"New Comment": "Νέο σχόλιο",
@@ -6,6 +7,7 @@
"This is a test text message!": "Αυτό είναι ένα δοκιμαστικό μήνυμα!",
"This is a *test* **markdown** `message`!": "Αυτό είναι ένα *δοκιμαστικό* **markdown** `μήνυμα`!",
"This is a test html message!": "Αυτό είναι ένα δοκιμαστικό html μήνυμα!",
+ "Trash": "Κάδος απορριμμάτων",
"You Were Added to Card": "Προστέθηκες στην κάρτα",
"You Were Mentioned in Comment": "Αναφέρθηκες σε σχόλιο",
"%s added you to %s on %s": "%s σε πρόσθεσε στο %s στο %s",
diff --git a/server/config/locales/en-GB.json b/server/config/locales/en-GB.json
index 935cf7a9..0434cc38 100644
--- a/server/config/locales/en-GB.json
+++ b/server/config/locales/en-GB.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archive",
"Card Created": "Card Created",
"Card Moved": "Card Moved",
"New Comment": "New Comment",
@@ -6,6 +7,7 @@
"This is a test text message!": "This is a test text message!",
"This is a *test* **markdown** `message`!": "This is a *test* **markdown** `message`!",
"This is a test html message!": "This is a test html message!",
+ "Trash": "Trash",
"You Were Added to Card": "You Were Added to Card",
"You Were Mentioned in Comment": "You Were Mentioned in Comment",
"%s added you to %s on %s": "%s added you to %s on %s",
diff --git a/server/config/locales/en-US.json b/server/config/locales/en-US.json
index 8c2e8d73..6b43f324 100644
--- a/server/config/locales/en-US.json
+++ b/server/config/locales/en-US.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archive",
"Card Created": "Card Created",
"Card Moved": "Card Moved",
"New Comment": "New Comment",
@@ -6,6 +7,7 @@
"This is a test text message!": "This is a test text message!",
"This is a *test* **markdown** `message`!": "This is a *test* **markdown** `message`!",
"This is a test html message!": "This is a test html message!",
+ "Trash": "Trash",
"You Were Added to Card": "You Were Added to Card",
"You Were Mentioned in Comment": "You Were Mentioned in Comment",
"%s added you to %s on %s": "%s added you to %s on %s",
diff --git a/server/config/locales/es-ES.json b/server/config/locales/es-ES.json
index f3bfc152..16417dc4 100644
--- a/server/config/locales/es-ES.json
+++ b/server/config/locales/es-ES.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archivo",
"Card Created": "Tarjeta creada",
"Card Moved": "Tarjeta movida",
"New Comment": "Nuevo comentario",
@@ -6,6 +7,7 @@
"This is a test text message!": "¡Este es un mensaje de texto de prueba!",
"This is a *test* **markdown** `message`!": "¡Este es un *mensaje* **markdown** `de prueba`!",
"This is a test html message!": "¡Este es un mensaje html de prueba!",
+ "Trash": "Papelera",
"You Were Added to Card": "Fuiste añadido a la tarjeta",
"You Were Mentioned in Comment": "Fuiste mencionado en un comentario",
"%s added you to %s on %s": "%s te añadió a %s en %s",
diff --git a/server/config/locales/et-EE.json b/server/config/locales/et-EE.json
index c4021a83..7f3060f4 100644
--- a/server/config/locales/et-EE.json
+++ b/server/config/locales/et-EE.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arhiiv",
"Card Created": "Kaart loodud",
"Card Moved": "Kaart liigutatud",
"New Comment": "Uus kommentaar",
@@ -6,6 +7,7 @@
"This is a test text message!": "See on testi tekstisõnum!",
"This is a *test* **markdown** `message`!": "See on *testi* **markdown** `sõnum`!",
"This is a test html message!": "See on testi html sõnum!",
+ "Trash": "Prügikast",
"You Were Added to Card": "Teid lisati kaardile",
"You Were Mentioned in Comment": "Teid mainiti kommentaaris",
"%s added you to %s on %s": "%s lisas teid %s-le %s",
diff --git a/server/config/locales/fa-IR.json b/server/config/locales/fa-IR.json
index b94fa66c..484837d9 100644
--- a/server/config/locales/fa-IR.json
+++ b/server/config/locales/fa-IR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "بایگانی",
"Card Created": "کارت ایجاد شد",
"Card Moved": "کارت منتقل شد",
"New Comment": "نظر جدید",
@@ -6,6 +7,7 @@
"This is a test text message!": "این یک پیام متنی آزمایشی است!",
"This is a *test* **markdown** `message`!": "این یک *پیام* **markdown** `آزمایشی` است!",
"This is a test html message!": "این یک پیام html آزمایشی است!",
+ "Trash": "سطل زباله",
"You Were Added to Card": "شما به کارت اضافه شدید",
"You Were Mentioned in Comment": "در نظری از شما نام برده شد",
"%s added you to %s on %s": "%s شما را به %s در %s اضافه کرد",
diff --git a/server/config/locales/fi-FI.json b/server/config/locales/fi-FI.json
index 0f3be176..62cbecb5 100644
--- a/server/config/locales/fi-FI.json
+++ b/server/config/locales/fi-FI.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arkisto",
"Card Created": "Kortti luotu",
"Card Moved": "Kortti siirretty",
"New Comment": "Uusi kommentti",
@@ -6,6 +7,7 @@
"This is a test text message!": "Tämä on testiviesti!",
"This is a *test* **markdown** `message`!": "Tämä on *testi* **markdown** `viesti`!",
"This is a test html message!": "Tämä on testi html viesti!",
+ "Trash": "Roskakori",
"You Were Added to Card": "Sinut lisättiin korttiin",
"You Were Mentioned in Comment": "Sinut mainittiin kommentissa",
"%s added you to %s on %s": "%s lisäsi sinut kohteeseen %s kohteessa %s",
diff --git a/server/config/locales/fr-FR.json b/server/config/locales/fr-FR.json
index 0c4cb9e2..d9996530 100644
--- a/server/config/locales/fr-FR.json
+++ b/server/config/locales/fr-FR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archive",
"Card Created": "Carte créée",
"Card Moved": "Carte déplacée",
"New Comment": "Nouveau commentaire",
@@ -6,6 +7,7 @@
"This is a test text message!": "Ceci est un message texte de test !",
"This is a *test* **markdown** `message`!": "Ceci est un *message* **markdown** `de test` !",
"This is a test html message!": "Ceci est un test html message!",
+ "Trash": "Corbeille",
"You Were Added to Card": "Vous avez été ajouté à la carte",
"You Were Mentioned in Comment": "Vous avez été mentionné dans un commentaire",
"%s added you to %s on %s": "%s vous a ajouté à %s le %s",
diff --git a/server/config/locales/hu-HU.json b/server/config/locales/hu-HU.json
index b84700cb..25e7c784 100644
--- a/server/config/locales/hu-HU.json
+++ b/server/config/locales/hu-HU.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archívum",
"Card Created": "Kártya létrehozva",
"Card Moved": "Kártya áthelyezve",
"New Comment": "Új hozzászólás",
@@ -6,6 +7,7 @@
"This is a test text message!": "Ez itt egy szöveges teszt üzenet!",
"This is a *test* **markdown** `message`!": "Ez itt egy **markdown** formátumú *teszt* `üzenet`!",
"This is a test html message!": "Ez egy html formátumú teszt üzenet!",
+ "Trash": "Kuka",
"You Were Added to Card": "Hozzádrendeltek egy kártyát",
"You Were Mentioned in Comment": "Megemlítettek egy kártyán",
"%s added you to %s on %s": "%s hozzárendelt téged a(z) %s kártyához a(z) %s projektben",
diff --git a/server/config/locales/id-ID.json b/server/config/locales/id-ID.json
index bbffd8a9..ec719a42 100644
--- a/server/config/locales/id-ID.json
+++ b/server/config/locales/id-ID.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arsip",
"Card Created": "Kartu dibuat",
"Card Moved": "Kartu dipindahkan",
"New Comment": "Komentar baru",
@@ -6,6 +7,7 @@
"This is a test text message!": "Ini adalah pesan teks tes!",
"This is a *test* **markdown** `message`!": "Ini adalah *pesan* **markdown** `tes`!",
"This is a test html message!": "Ini adalah pesan html tes!",
+ "Trash": "Sampah",
"You Were Added to Card": "Anda ditambahkan ke kartu",
"You Were Mentioned in Comment": "Anda disebutkan dalam komentar",
"%s added you to %s on %s": "%s menambahkan Anda ke %s pada %s",
diff --git a/server/config/locales/it-IT.json b/server/config/locales/it-IT.json
index 2e82564c..113c3ea9 100644
--- a/server/config/locales/it-IT.json
+++ b/server/config/locales/it-IT.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archivio",
"Card Created": "Nuova task creata",
"Card Moved": "Task spostata",
"New Comment": "Nuovo commento",
@@ -6,6 +7,7 @@
"This is a test text message!": "Questo è un messaggio di testo di test!",
"This is a *test* **markdown** `message`!": "Questo è un *test* **markdown** `messaggio`!",
"This is a test html message!": "Questo è un test html messaggio!",
+ "Trash": "Cestino",
"You Were Added to Card": "Sei stato aggiunto alla task",
"You Were Mentioned in Comment": "Sei stato menzionato nel commento",
"%s created %s in %s on %s": "%s ha creato %s in %s in %s",
diff --git a/server/config/locales/ja-JP.json b/server/config/locales/ja-JP.json
index f0172f47..810ca4e3 100644
--- a/server/config/locales/ja-JP.json
+++ b/server/config/locales/ja-JP.json
@@ -1,4 +1,5 @@
{
+ "Archive": "アーカイブ",
"Card Created": "カードが作成されました",
"Card Moved": "カードが移動されました",
"New Comment": "新しいコメント",
@@ -6,6 +7,7 @@
"This is a test text message!": "これはテストテキストメッセージです!",
"This is a *test* **markdown** `message`!": "これは*テスト***markdown**`メッセージ`です!",
"This is a test html message!": "これはテストhtmlメッセージです!",
+ "Trash": "ゴミ箱",
"You Were Added to Card": "カードに追加されました",
"You Were Mentioned in Comment": "コメントでメンションされました",
"%s added you to %s on %s": "%sが%sの%sにあなたを追加しました",
diff --git a/server/config/locales/ko-KR.json b/server/config/locales/ko-KR.json
index 53962ea8..144be51d 100644
--- a/server/config/locales/ko-KR.json
+++ b/server/config/locales/ko-KR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "보관함",
"Card Created": "카드가 생성됨",
"Card Moved": "카드가 이동됨",
"New Comment": "새 댓글",
@@ -6,6 +7,7 @@
"This is a test text message!": "이것은 테스트 텍스트 메시지입니다!",
"This is a *test* **markdown** `message`!": "이것은 *테스트* **markdown** `메시지`입니다!",
"This is a test html message!": "이것은 테스트 html 메시지입니다!",
+ "Trash": "휴지통",
"You Were Added to Card": "카드에 추가되었습니다",
"You Were Mentioned in Comment": "댓글에서 언급되었습니다",
"%s added you to %s on %s": "%s님이 %s의 %s에 당신을 추가했습니다",
diff --git a/server/config/locales/nl-NL.json b/server/config/locales/nl-NL.json
index f74bcf6b..70753dda 100644
--- a/server/config/locales/nl-NL.json
+++ b/server/config/locales/nl-NL.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archief",
"Card Created": "Kaart aangemaakt",
"Card Moved": "Kaart verplaatst",
"New Comment": "Nieuwe reactie",
@@ -6,6 +7,7 @@
"This is a test text message!": "Dit is een test tekstbericht!",
"This is a *test* **markdown** `message`!": "Dit is een *test* **markdown** `bericht`!",
"This is a test html message!": "Dit is een test html bericht!",
+ "Trash": "Prullenbak",
"You Were Added to Card": "Je bent toegevoegd aan kaart",
"You Were Mentioned in Comment": "Je bent genoemd in reactie",
"%s added you to %s on %s": "%s heeft je toegevoegd aan %s op %s",
diff --git a/server/config/locales/pl-PL.json b/server/config/locales/pl-PL.json
index 46838af1..6eaff471 100644
--- a/server/config/locales/pl-PL.json
+++ b/server/config/locales/pl-PL.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archiwum",
"Card Created": "Karta utworzona",
"Card Moved": "Karta przeniesiona",
"New Comment": "Nowy komentarz",
@@ -6,6 +7,7 @@
"This is a test text message!": "To jest testowa wiadomość tekstowa!",
"This is a *test* **markdown** `message`!": "To jest *testowa* **markdown** `wiadomość`!",
"This is a test html message!": "To jest testowa html wiadomość!",
+ "Trash": "Kosz",
"You Were Added to Card": "Zostałeś dodany do karty",
"You Were Mentioned in Comment": "Zostałeś wspomniany w komentarzu",
"%s added you to %s on %s": "%s dodał cię do %s w dniu %s",
diff --git a/server/config/locales/pt-BR.json b/server/config/locales/pt-BR.json
index 3f45e3eb..49745515 100644
--- a/server/config/locales/pt-BR.json
+++ b/server/config/locales/pt-BR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arquivo",
"Card Created": "Cartão criado",
"Card Moved": "Cartão movido",
"New Comment": "Novo comentário",
@@ -6,6 +7,7 @@
"This is a test text message!": "Esta é uma mensagem de texto de teste!",
"This is a *test* **markdown** `message`!": "Esta é uma *mensagem* **markdown** `de teste`!",
"This is a test html message!": "Esta é uma mensagem html de teste!",
+ "Trash": "Lixeira",
"You Were Added to Card": "Você foi adicionado ao cartão",
"You Were Mentioned in Comment": "Você foi mencionado em comentário",
"%s added you to %s on %s": "%s adicionou você a %s em %s",
diff --git a/server/config/locales/pt-PT.json b/server/config/locales/pt-PT.json
index 1005c8f4..7379cf5a 100644
--- a/server/config/locales/pt-PT.json
+++ b/server/config/locales/pt-PT.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arquivo",
"Card Created": "Cartão criado",
"Card Moved": "Cartão movido",
"New Comment": "Novo comentário",
@@ -6,6 +7,7 @@
"This is a test text message!": "Esta é uma mensagem de texto de teste!",
"This is a *test* **markdown** `message`!": "Esta é uma *mensagem* **markdown** `de teste`!",
"This is a test html message!": "Esta é uma mensagem html de teste!",
+ "Trash": "Lixo",
"You Were Added to Card": "Foi adicionado ao cartão",
"You Were Mentioned in Comment": "Foi mencionado num comentário",
"%s added you to %s on %s": "%s adicionou-o a %s em %s",
diff --git a/server/config/locales/ro-RO.json b/server/config/locales/ro-RO.json
index b35764ee..d6885dd8 100644
--- a/server/config/locales/ro-RO.json
+++ b/server/config/locales/ro-RO.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arhivă",
"Card Created": "Card creat",
"Card Moved": "Card mutat",
"New Comment": "Comentariu nou",
@@ -6,6 +7,7 @@
"This is a test text message!": "Acesta este un mesaj text de test!",
"This is a *test* **markdown** `message`!": "Acesta este un *mesaj* **markdown** `de test`!",
"This is a test html message!": "Acesta este un mesaj html de test!",
+ "Trash": "Coș de gunoi",
"You Were Added to Card": "Ați fost adăugat la card",
"You Were Mentioned in Comment": "Ați fost menționat într-un comentariu",
"%s added you to %s on %s": "%s v-a adăugat la %s pe %s",
diff --git a/server/config/locales/ru-RU.json b/server/config/locales/ru-RU.json
index 0467f4f0..c94db4d8 100644
--- a/server/config/locales/ru-RU.json
+++ b/server/config/locales/ru-RU.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Архив",
"Card Created": "Карточка создана",
"Card Moved": "Карточка перемещена",
"New Comment": "Новый комментарий",
@@ -6,6 +7,7 @@
"This is a test text message!": "Это тестовое сообщение!",
"This is a *test* **markdown** `message`!": "Это *тестовое* **markdown** `сообщение`!",
"This is a test html message!": "Это тестовое html сообщение!",
+ "Trash": "Корзина",
"You Were Added to Card": "Вы были добавлены к карточке",
"You Were Mentioned in Comment": "Вы были упомянуты в комментарии",
"%s added you to %s on %s": "%s добавил(а) вас к %s на %s",
diff --git a/server/config/locales/sk-SK.json b/server/config/locales/sk-SK.json
index 79ab3283..a0bc5c7f 100644
--- a/server/config/locales/sk-SK.json
+++ b/server/config/locales/sk-SK.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Archív",
"Card Created": "Karta vytvorená",
"Card Moved": "Karta presunutá",
"New Comment": "Nový komentár",
@@ -6,6 +7,7 @@
"This is a test text message!": "Toto je testovacia textová správa!",
"This is a *test* **markdown** `message`!": "Toto je *testovacia* **markdown** `správa`!",
"This is a test html message!": "Toto je testovacia html správa!",
+ "Trash": "Kôš",
"You Were Added to Card": "Boli ste pridaní ku karte",
"You Were Mentioned in Comment": "Boli ste spomenutí v komentári",
"%s added you to %s on %s": "%s vás pridal k %s dňa %s",
diff --git a/server/config/locales/sr-Cyrl-RS.json b/server/config/locales/sr-Cyrl-RS.json
index 430a6203..e09cc2d5 100644
--- a/server/config/locales/sr-Cyrl-RS.json
+++ b/server/config/locales/sr-Cyrl-RS.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Архива",
"Card Created": "Картица креирана",
"Card Moved": "Картица премештена",
"New Comment": "Нови коментар",
@@ -6,6 +7,7 @@
"This is a test text message!": "Ово је тест текстуална порука!",
"This is a *test* **markdown** `message`!": "Ово је *тест* **markdown** `порука`!",
"This is a test html message!": "Ово је тест html порука!",
+ "Trash": "Корпа за отпатке",
"You Were Added to Card": "Додати сте на картицу",
"You Were Mentioned in Comment": "Поменути сте у коментару",
"%s added you to %s on %s": "%s вас је додао на %s дана %s",
diff --git a/server/config/locales/sr-Latn-RS.json b/server/config/locales/sr-Latn-RS.json
index fb218171..b9ea7368 100644
--- a/server/config/locales/sr-Latn-RS.json
+++ b/server/config/locales/sr-Latn-RS.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arhiva",
"Card Created": "Kartica kreirana",
"Card Moved": "Kartica premeštena",
"New Comment": "Novi komentar",
@@ -6,6 +7,7 @@
"This is a test text message!": "Ovo je test tekstualna poruka!",
"This is a *test* **markdown** `message`!": "Ovo je *test* **markdown** `poruka`!",
"This is a test html message!": "Ovo je test html poruka!",
+ "Trash": "Korpa za otpatke",
"You Were Added to Card": "Dodati ste na karticu",
"You Were Mentioned in Comment": "Pomenuti ste u komentaru",
"%s added you to %s on %s": "%s vas je dodao na %s dana %s",
diff --git a/server/config/locales/sv-SE.json b/server/config/locales/sv-SE.json
index c42bd5c9..568d57d9 100644
--- a/server/config/locales/sv-SE.json
+++ b/server/config/locales/sv-SE.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arkiv",
"Card Created": "Kort skapat",
"Card Moved": "Kort flyttat",
"New Comment": "Ny kommentar",
@@ -6,6 +7,7 @@
"This is a test text message!": "Detta är ett test textmeddelande!",
"This is a *test* **markdown** `message`!": "Detta är ett *test* **markdown** `meddelande`!",
"This is a test html message!": "Detta är ett test html meddelande!",
+ "Trash": "Papperskorg",
"You Were Added to Card": "Du lades till på kort",
"You Were Mentioned in Comment": "Du nämndes i kommentar",
"%s added you to %s on %s": "%s lade till dig på %s den %s",
diff --git a/server/config/locales/tr-TR.json b/server/config/locales/tr-TR.json
index 2ee799d3..9045bfee 100644
--- a/server/config/locales/tr-TR.json
+++ b/server/config/locales/tr-TR.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arşiv",
"Card Created": "Kart oluşturuldu",
"Card Moved": "Kart taşındı",
"New Comment": "Yeni yorum",
@@ -6,6 +7,7 @@
"This is a test text message!": "Bu bir test metin mesajıdır!",
"This is a *test* **markdown** `message`!": "Bu bir *test* **markdown** `mesajı`!",
"This is a test html message!": "Bu bir test html mesajı!",
+ "Trash": "Çöp kutusu",
"You Were Added to Card": "Karta eklendiniz",
"You Were Mentioned in Comment": "Bir yorumda bahsedildiniz",
"%s added you to %s on %s": "%s sizi %s'ye %s tarihinde ekledi",
diff --git a/server/config/locales/uk-UA.json b/server/config/locales/uk-UA.json
index 3f30267c..919806c9 100644
--- a/server/config/locales/uk-UA.json
+++ b/server/config/locales/uk-UA.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Архів",
"Card Created": "Картку створено",
"Card Moved": "Картку переміщено",
"New Comment": "Новий коментар",
@@ -6,6 +7,7 @@
"This is a test text message!": "Це нове повідомлення!",
"This is a *test* **markdown** `message`!": "Це *тестове* **markdown** `повідомлення`!",
"This is a test html message!": "Це тестове html повідомлення!",
+ "Trash": "Кошик",
"You Were Added to Card": "Вас було додано до картки",
"You Were Mentioned in Comment": "Вас було згадано у коментарі",
"%s added you to %s on %s": "%s додав(ла) вас до %s на %s",
diff --git a/server/config/locales/uz-UZ.json b/server/config/locales/uz-UZ.json
index 57458a76..8c5ccbf8 100644
--- a/server/config/locales/uz-UZ.json
+++ b/server/config/locales/uz-UZ.json
@@ -1,4 +1,5 @@
{
+ "Archive": "Arxiv",
"Card Created": "Karta yaratildi",
"Card Moved": "Karta ko'chirildi",
"New Comment": "Yangi izoh",
@@ -6,6 +7,7 @@
"This is a test text message!": "Bu test matn xabari!",
"This is a *test* **markdown** `message`!": "Bu *test* **markdown** `xabar`!",
"This is a test html message!": "Bu test html xabar!",
+ "Trash": "Chiqindi quti",
"You Were Added to Card": "Siz kartaga qo'shildingiz",
"You Were Mentioned in Comment": "Siz izohda eslatildingiz",
"%s added you to %s on %s": "%s sizni %s ga %s da qo'shdi",
diff --git a/server/config/locales/zh-CN.json b/server/config/locales/zh-CN.json
index 0a36e4e9..87ca06c3 100644
--- a/server/config/locales/zh-CN.json
+++ b/server/config/locales/zh-CN.json
@@ -1,4 +1,5 @@
{
+ "Archive": "归档",
"Card Created": "卡片已创建",
"Card Moved": "卡片已移动",
"New Comment": "新评论",
@@ -6,6 +7,7 @@
"This is a test text message!": "这是一条测试文本消息!",
"This is a *test* **markdown** `message`!": "这是一条*测试***markdown**`消息`!",
"This is a test html message!": "这是一条测试html消息!",
+ "Trash": "回收站",
"You Were Added to Card": "您已被添加到卡片",
"You Were Mentioned in Comment": "您在评论中被提及",
"%s added you to %s on %s": "%s 在 %s 将您添加到 %s",
diff --git a/server/config/locales/zh-TW.json b/server/config/locales/zh-TW.json
index 71042dd8..c93f150f 100644
--- a/server/config/locales/zh-TW.json
+++ b/server/config/locales/zh-TW.json
@@ -1,4 +1,5 @@
{
+ "Archive": "封存",
"Card Created": "卡片已建立",
"Card Moved": "卡片已移動",
"New Comment": "新留言",
@@ -6,6 +7,7 @@
"This is a test text message!": "這是一則測試文字訊息!",
"This is a *test* **markdown** `message`!": "這是一則*測試***markdown**`訊息`!",
"This is a test html message!": "這是一則測試html訊息!",
+ "Trash": "垃圾桶",
"You Were Added to Card": "您已被加入卡片",
"You Were Mentioned in Comment": "您在留言中被提及",
"%s added you to %s on %s": "%s 在 %s 將您加入 %s",
diff --git a/server/utils/validators.js b/server/utils/validators.js
index 767027d4..695b80a6 100644
--- a/server/utils/validators.js
+++ b/server/utils/validators.js
@@ -16,6 +16,7 @@ const USERNAME_REGEX = /^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$/;
const isUrl = (value) =>
validator.isURL(value, {
protocols: ['http', 'https'],
+ require_tld: false,
require_protocol: true,
});