We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8bd000 commit d4c15c2Copy full SHA for d4c15c2
src/presentation/decorators/language-header.decorator.ts
@@ -0,0 +1,12 @@
1
+import { ApiHeader } from '@nestjs/swagger';
2
+
3
+export const LanguageHeader = () =>
4
+ ApiHeader({
5
+ name: 'accept-language',
6
+ description: 'Language for validation messages (eg: pt, en)',
7
+ required: false,
8
+ schema: {
9
+ type: 'string',
10
+ example: 'en',
11
+ },
12
+ });
0 commit comments