Fix: Translate remaining English log messages to Slovak
- validateInput.js: validation error messages - errorHandler.js: unhandled error message - validateBody.js: suspicious input message - crm-email.controller.js: error log messages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ export function errorHandler(err, req, res, next) {
|
||||
}
|
||||
|
||||
// Log error
|
||||
logger.error('Unhandled error', err);
|
||||
logger.error('Neošetrená chyba', err);
|
||||
|
||||
// Get status code
|
||||
const statusCode = typeof err.statusCode === 'number'
|
||||
|
||||
@@ -12,7 +12,7 @@ export function validateBody(req, res, next) {
|
||||
];
|
||||
for (const pattern of dangerousPatterns) {
|
||||
if (pattern.test(data)) {
|
||||
logger.warn('Suspicious input detected', { data: data.substring(0, 100) });
|
||||
logger.warn('Detegovaný podozrivý vstup', { data: data.substring(0, 100) });
|
||||
return res.status(400).json({ message: 'Detegovaný škodlivý obsah v požiadavke' });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export const validateBody = (schema) => {
|
||||
}
|
||||
|
||||
// Log unexpected errors
|
||||
logger.error('Validation error', { error: error.message });
|
||||
logger.error('Chyba validácie', { error: error.message });
|
||||
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
@@ -75,7 +75,7 @@ export const validateQuery = (schema) => {
|
||||
});
|
||||
}
|
||||
|
||||
logger.error('Query validation error', { error: error.message });
|
||||
logger.error('Chyba validácie query parametrov', { error: error.message });
|
||||
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
@@ -115,7 +115,7 @@ export const validateParams = (schema) => {
|
||||
});
|
||||
}
|
||||
|
||||
logger.error('Params validation error', { error: error.message });
|
||||
logger.error('Chyba validácie URL parametrov', { error: error.message });
|
||||
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user