Nidhal Baccouri
commited on
Commit
·
80f6aa1
1
Parent(s):
ce7fd1d
fixed comment
Browse files
deep_translator/microsoft.py
CHANGED
@@ -44,7 +44,7 @@ class MicrosoftTranslator(BaseTranslator):
|
|
44 |
"Ocp-Apim-Subscription-Key": self.api_key,
|
45 |
"Content-type": "application/json",
|
46 |
}
|
47 |
-
# region is not required but very common and goes to headers if passed
|
48 |
if region:
|
49 |
self.region = region
|
50 |
self.headers["Ocp-Apim-Subscription-Region"] = self.region
|
|
|
44 |
"Ocp-Apim-Subscription-Key": self.api_key,
|
45 |
"Content-type": "application/json",
|
46 |
}
|
47 |
+
# parameter region is not required but very common and goes to headers if passed
|
48 |
if region:
|
49 |
self.region = region
|
50 |
self.headers["Ocp-Apim-Subscription-Region"] = self.region
|