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.
| 380 | |
| 381 | |
| 382 | class 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 | |
| 404 | class MultilingualGlossaryDictionaryEntries: |
no outgoing calls
no test coverage detected