feat: i18n support for backend

This commit is contained in:
cihatata authored and cihat committed 2025-02-11 07:43:36 +03:00
1 parent 0eceac1587
commit 10713428b9
34 files changed
+1106 -838

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@ class StatusPageController {
try {
const statusPage = await this.db.createStatusPage(req.body, req.file);
return res.success({
msg: successMessages.STATUS_PAGE_CREATE,
msg: successMessages.STATUS_PAGE_CREATE(req.language),
data: statusPage,
});
} catch (error) {
@@ -63,7 +63,7 @@ class StatusPageController {
try {
const statusPage = await this.db.getStatusPage();
return res.success({
msg: successMessages.STATUS_PAGE,
msg: successMessages.STATUS_PAGE_BY_URL(req.language),
data: statusPage,
});
} catch (error) {