@@ -106,6 +106,7 @@ def __init__(self, **kwargs):
106106 self .source_language : str = kwargs .get ('source_language' )
107107 self .translation : Union [str , List [str ], List [TextBlock ]]
108108 self .adapted_to : Optional [List [str ]] = kwargs .get ('adapted_to' , None )
109+ self .glossaries : Optional [List [str ]] = kwargs .get ('glossaries' , None )
109110 self .adapted_to_matches : Optional [Union [List [NGMemoryMatch ], List [List [NGMemoryMatch ]]]] = kwargs .get ('adapted_to_matches' , None )
110111 self .glossaries_matches : Optional [Union [List [NGGlossaryMatch ], List [List [NGGlossaryMatch ]]]] = kwargs .get ('glossaries_matches' , None )
111112
@@ -321,18 +322,18 @@ def upload(self, file_path: str, filename: str, target: str, source: Optional[st
321322 headers = {'X-No-Trace' : 'true' }
322323
323324 return Document (** self ._client .post ('/documents' , body , headers = headers ))
324-
325+
325326 def status (self , id : str ) -> Document :
326327 return Document (** self ._client .get (f'/documents/{ id } ' ))
327-
328+
328329 def download (self , id : str , output_format : Optional [str ] = None ) -> bytes :
329330 params = {}
330331 if output_format is not None :
331332 params ['output_format' ] = output_format
332333 url : str = self ._client .get (f'/documents/{ id } /download-url' , params )['url' ]
333334 return self ._s3client .download (url = url )
334335
335- def translate (self , file_path : str , filename : str , target : str , source : Optional [str ] = None ,
336+ def translate (self , file_path : str , filename : str , target : str , source : Optional [str ] = None ,
336337 adapt_to : Optional [List [str ]] = None , glossaries : Optional [List [str ]] = None , output_format : Optional [str ] = None ,
337338 no_trace : bool = False ) -> bytes :
338339
0 commit comments