Add translation system (#85)

This commit is contained in:
Miguel Ribeiro
2024-01-23 22:46:26 +01:00
committed by GitHub
parent d287f303f0
commit d7366dcfb0
35 changed files with 965 additions and 317 deletions
+2 -2
View File
@@ -12,11 +12,11 @@
http_response_code(204);
} else {
http_response_code(500);
echo json_encode(array("message" => "Error deleting the subscription."));
echo json_encode(array("message" => translate('error_deleting_subscription', $i18n)));
}
} else {
http_response_code(405);
echo json_encode(array("message" => "Invalid request method."));
echo json_encode(array("message" => translate('invalid_request_method', $i18n)));
}
}
$db->close();