Add backup functionality with escalation rules for moderation commands
- Updated .env.example to include backup configuration options. - Modified docker-compose.yml to mount backup volume. - Enhanced Dockerfile to install PostgreSQL client. - Added EscalationRule model to Prisma schema for managing warning escalation. - Updated environment validation in env.ts to include backup settings. - Refactored job handling in jobs.ts to implement backup jobs and cleanup. - Introduced escalation commands in moderation service for managing user warnings. - Updated moderation commands to apply escalation rules based on warning count.
This commit is contained in:
8
packages/shared/src/i18n.test.ts
Normal file
8
packages/shared/src/i18n.test.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { t } from './index.js';
|
||||
|
||||
describe('i18n helper', () => {
|
||||
it('returns german translations', () => {
|
||||
expect(t('de', 'moderation.success')).toBe('Aktion erfolgreich ausgeführt.');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user