From ea9017925154288d9fa88e0aad0be04898cfe02b Mon Sep 17 00:00:00 2001 From: Craig Paul <=> Date: Tue, 27 Aug 2019 15:49:07 -0600 Subject: [PATCH] Adds method for setting an accept language header --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 31ae1bb..0d6adc2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -86,6 +86,12 @@ export class OpenApi { return this.form; } + public locale(locale: string): this { + this.client.defaults.headers.common['Accept-Language'] = locale; + + return this; + } + public lists(): WaitListResource { return this.list; }