MCPcopy Create free account
hub / github.com/DeepL/deepl-python / GlossaryLanguagePair

Class GlossaryLanguagePair

deepl/api_data.py:382–401  ·  view source on GitHub ↗

Information about a pair of languages supported for DeepL glossaries. :param source_lang: The code of the source language. :param target_lang: The code of the target language.

Source from the content-addressed store, hash-verified

380
381
382class GlossaryLanguagePair:
383 """Information about a pair of languages supported for DeepL glossaries.
384
385 :param source_lang: The code of the source language.
386 :param target_lang: The code of the target language.
387 """
388
389 def __init__(self, source_lang: str, target_lang: str):
390 self._source_lang = source_lang
391 self._target_lang = target_lang
392
393 @property
394 def source_lang(self) -> str:
395 """Returns the code of the source language."""
396 return self._source_lang
397
398 @property
399 def target_lang(self) -> str:
400 """Returns the code of the target language."""
401 return self._target_lang
402
403
404class MultilingualGlossaryDictionaryEntries:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected