All error messages in german and in englisch

This commit is contained in:
rxf
2023-05-09 15:37:27 +02:00
parent 2cf418756d
commit 347c6bdc96
17 changed files with 1007 additions and 243 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import express from 'express'
import * as ERR from "../utilities/errortexts.js"
import { translate as trans } from '../routes/api.js'
const router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.status(200).json({message: ERR.NOTHIMG})
res.status(200).json({message: trans('NOTHIMG')})
});
export default router