Skip to content

Commit

Permalink
fix: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 3, 2024
1 parent 5d3e4f0 commit 5017fa0
Show file tree
Hide file tree
Showing 30 changed files with 58 additions and 33 deletions.
2 changes: 1 addition & 1 deletion helpers/set-pagination-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function setPaginationHeaders(
if (!ctx.api) return;

// developer and human-friendly easy to parse HTTP pagination headers
ctx.set('X-Page-Count', pageCount);
ctx.set('X-Page-Count', pageCount || 1);
ctx.set('X-Page-Current', currentPage);
ctx.set('X-Page-Size', size || 1);
ctx.set('X-Item-Count', itemCount);
Expand Down
3 changes: 2 additions & 1 deletion locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -10347,5 +10347,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "لقد اكتملت عملية تحسين قاعدة البيانات الخاصة بك. تم ضبط pragma \"auto_vacuum=FULL\" بشكل صحيح على صندوق بريد قاعدة بيانات SQLite الخاص بك، وبمرور الوقت سيتم تحسين حجم ملف قاعدة البيانات الخاصة بك.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "تمت الموافقة على <span class=\"notranslate\">%s</span> للوصول إلى النشرة الإخبارية",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\" style=\";text-align:right;direction:rtl\">تمت الموافقة على نطاقك <span class=\"notranslate\">%s</span> للوصول إلى النشرة الإخبارية.</p><p class=\"text-center mb-0\" style=\";text-align:right;direction:rtl\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">الإعداد الكامل</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\" style=\";text-align:right;direction:rtl\">لقد تم إزالة إمكانية الوصول إلى النشرة الإخبارية لنطاقك <span class=\"notranslate\">%s</span> .</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\" style=\";text-align:right;direction:rtl\">لقد تم إزالة إمكانية الوصول إلى النشرة الإخبارية لنطاقك <span class=\"notranslate\">%s</span> .</p>",
"attachment limit": "حد المرفقات"
}
3 changes: 2 additions & 1 deletion locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10347,5 +10347,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Proces optimalizace databáze byl dokončen. Pragma \"auto_vacuum=FULL\" bylo správně nastaveno ve vaší poštovní schránce databáze SQLite a časem bude velikost vašeho databázového souboru optimalizována.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> schválen pro přístup k newsletteru",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Vaše doména <span class=\"notranslate\">%s</span> byla schválena pro přístup k bulletinu.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Dokončete nastavení</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Vaší doméně <span class=\"notranslate\">%s</span> byl odebrán přístup k bulletinu.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Vaší doméně <span class=\"notranslate\">%s</span> byl odebrán přístup k bulletinu.</p>",
"attachment limit": "limit přílohy"
}
3 changes: 2 additions & 1 deletion locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -7335,5 +7335,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Din databaseoptimeringsproces er afsluttet. \"auto_vacuum=FULL\"-pragmaen er blevet indstillet korrekt på din SQLite-databasepostkasse, og over tid vil din databasefilstørrelse blive optimeret.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> godkendt til nyhedsbrevsadgang",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Dit domæne <span class=\"notranslate\">%s</span> blev godkendt til nyhedsbrevsadgang.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Fuldfør opsætning</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Dit domæne <span class=\"notranslate\">%s</span> fik sin nyhedsbrevsadgang fjernet.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Dit domæne <span class=\"notranslate\">%s</span> fik sin nyhedsbrevsadgang fjernet.</p>",
"attachment limit": "tilknytningsgrænse"
}
3 changes: 2 additions & 1 deletion locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -9386,5 +9386,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Ihr Datenbankoptimierungsprozess ist abgeschlossen. Das Pragma „auto_vacuum=FULL“ wurde für Ihr SQLite-Datenbankpostfach richtig eingestellt und mit der Zeit wird die Größe Ihrer Datenbankdatei optimiert.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> für Newsletter-Zugriff zugelassen",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Ihre Domain <span class=\"notranslate\">%s</span> wurde für den Newsletter-Zugriff zugelassen.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Vollständige Einrichtung</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Der Newsletter-Zugriff auf Ihre Domäne <span class=\"notranslate\">%s</span> wurde entfernt.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Der Newsletter-Zugriff auf Ihre Domäne <span class=\"notranslate\">%s</span> wurde entfernt.</p>",
"attachment limit": "Anhangsgrenze"
}
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6736,5 +6736,6 @@
"Mailbox temporarily unavailable for automatic optimization": "Mailbox temporarily unavailable for automatic optimization",
"Your database is being automatically optimized via SQLite VACUUM in order to ensure \"auto_vacuum=FULL\" pragma is set properly on your mailbox. This operation will take roughly 1 minute per GB of storage you currently use on this alias. It is necessary to perform this operation in order to keep your database size optimized over time as you read and write from your mailbox. Once completed you will receive an email confirmation.": "Your database is being automatically optimized via SQLite VACUUM in order to ensure \"auto_vacuum=FULL\" pragma is set properly on your mailbox. This operation will take roughly 1 minute per GB of storage you currently use on this alias. It is necessary to perform this operation in order to keep your database size optimized over time as you read and write from your mailbox. Once completed you will receive an email confirmation.",
"Mailbox optimization completed": "Mailbox optimization completed",
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized."
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.",
"attachment limit": "attachment limit"
}
3 changes: 2 additions & 1 deletion locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -10345,5 +10345,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Se ha completado el proceso de optimización de su base de datos. El pragma \"auto_vacuum=FULL\" se ha configurado correctamente en su buzón de correo de base de datos SQLite y, con el tiempo, se optimizará el tamaño del archivo de su base de datos.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> aprobado para acceder al boletín informativo",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Su dominio <span class=\"notranslate\">%s</span> fue aprobado para el acceso al boletín.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Configuración completa</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Se eliminó el acceso al boletín informativo de su dominio <span class=\"notranslate\">%s</span> .</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Se eliminó el acceso al boletín informativo de su dominio <span class=\"notranslate\">%s</span> .</p>",
"attachment limit": "límite de archivos adjuntos"
}
3 changes: 2 additions & 1 deletion locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10194,5 +10194,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Tietokannan optimointiprosessi on valmis. \"Auto_vacuum=FULL\"-käytäntö on asetettu oikein SQLite-tietokantapostilaatikkoosi, ja ajan myötä tietokantatiedoston koko optimoidaan.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> hyväksytty uutiskirjeen käyttöoikeuteen",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Verkkotunnuksesi <span class=\"notranslate\">%s</span> hyväksyttiin uutiskirjeen käyttöoikeuteen.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Täydellinen asennus</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Verkkotunnuksesi <span class=\"notranslate\">%s</span> uutiskirjeen käyttöoikeus poistettiin.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Verkkotunnuksesi <span class=\"notranslate\">%s</span> uutiskirjeen käyttöoikeus poistettiin.</p>",
"attachment limit": "liitteen raja"
}
3 changes: 2 additions & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7872,5 +7872,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Votre processus d'optimisation de base de données est terminé. Le pragma « auto_vacuum=FULL » a été correctement défini sur votre boîte aux lettres de base de données SQLite et au fil du temps, la taille de votre fichier de base de données sera optimisée.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> approuvé pour l&#39;accès à la newsletter",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Votre domaine <span class=\"notranslate\">%s</span> a été approuvé pour l&#39;accès à la newsletter.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Installation complète</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">L&#39;accès à la newsletter de votre domaine <span class=\"notranslate\">%s</span> a été supprimé.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">L&#39;accès à la newsletter de votre domaine <span class=\"notranslate\">%s</span> a été supprimé.</p>",
"attachment limit": "limite de pièce jointe"
}
3 changes: 2 additions & 1 deletion locales/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -8368,5 +8368,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "תהליך האופטימיזציה של מסד הנתונים שלך הושלם. הפרגמה \"auto_vacuum=FULL\" הוגדרה כראוי בתיבת הדואר של מסד הנתונים של SQLite ועם הזמן גודל קובץ מסד הנתונים שלך יעבור אופטימיזציה.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> אושרה לגישה לניוזלטר",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\" style=\";text-align:right;direction:rtl\">הדומיין שלך <span class=\"notranslate\">%s</span> אושר לגישה לניוזלטר.</p><p class=\"text-center mb-0\" style=\";text-align:right;direction:rtl\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">השלם את ההגדרה</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\" style=\";text-align:right;direction:rtl\">הגישה לניוזלטר הוסרה לדומיין <span class=\"notranslate\">%s</span> שלך.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\" style=\";text-align:right;direction:rtl\">הגישה לניוזלטר הוסרה לדומיין <span class=\"notranslate\">%s</span> שלך.</p>",
"attachment limit": "מגבלת התקשרות"
}
3 changes: 2 additions & 1 deletion locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -10347,5 +10347,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Az adatbázis-optimalizálási folyamat befejeződött. Az \"auto_vacuum=FULL\" pragma megfelelően be van állítva az SQLite adatbázis-postafiókjában, és idővel az adatbázisfájl mérete optimalizálódik.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> jóváhagyva a hírlevélhez való hozzáférést",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">A(z <span class=\"notranslate\">%s</span> domain hírlevélhez való hozzáférését jóváhagyták.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Teljes beállítás</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">A(z <span class=\"notranslate\">%s</span> domain hírlevél-hozzáférése megszűnt.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">A(z <span class=\"notranslate\">%s</span> domain hírlevél-hozzáférése megszűnt.</p>",
"attachment limit": "csatolási korlát"
}
3 changes: 2 additions & 1 deletion locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -10347,5 +10347,6 @@
"Your database optimization process has been completed. The \"auto_vacuum=FULL\" pragma has been set properly on your SQLite database mailbox and over time your database file size will be optimized.": "Proses optimasi basis data Anda telah selesai. Pragma \"auto_vacuum=FULL\" telah ditetapkan dengan benar di kotak surat basis data SQLite Anda dan seiring waktu ukuran file basis data Anda akan dioptimalkan.",
"<span class=\"notranslate\">%s</span> approved for newsletter access": "<span class=\"notranslate\">%s</span> disetujui untuk akses buletin",
"<p class=\"text-center\">Your domain <span class=\"notranslate\">%s</span> was approved for newsletter access.</p><p class=\"text-center mb-0\"><a class=\"btn btn-lg btn-danger\" href=\"%s\">Complete Setup</a></p>": "<p class=\"text-center\">Domain Anda <span class=\"notranslate\">%s</span> telah disetujui untuk akses buletin.</p><p class=\"text-center mb-0\"> <a class=\"btn btn-lg btn-danger\" href=\"%s\">Pengaturan Lengkap</a></p>",
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Akses buletin domain Anda <span class=\"notranslate\">%s</span> telah dihapus.</p>"
"<p class=\"text-center text-danger\">Your domain <span class=\"notranslate\">%s</span> had its newsletter access removed.</p>": "<p class=\"text-center text-danger\">Akses buletin domain Anda <span class=\"notranslate\">%s</span> telah dihapus.</p>",
"attachment limit": "batas lampiran"
}
Loading

0 comments on commit 5017fa0

Please sign in to comment.