Skip to content

Commit f761732

Browse files
feat: New language Ukrainian (uk): add language code constant and tests
1 parent 04799e1 commit f761732

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77

88
## [Unreleased]
9+
### Added
10+
* New language available: Ukrainian (`'uk'`). Add language code constant and tests.
11+
12+
Note: older library versions also support new languages, this update only adds new code constant.
913
### Changed
1014
* Add note and workaround to README about Poetry error on Ubuntu 22.04.
1115
* Pull request [#48](https://github.com/DeepLcom/deepl-python/pull/48)
1216
thanks to [FOehlschlaeger](https://github.com/FOehlschlaeger).
1317

18+
1419
## [1.9.0] - 2022-07-07
1520
### Added
1621
* Add `Translator.create_glossary_from_csv()` allowing glossaries downloaded

deepl/translator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def remove_regional_variant(language: Union[str]) -> str:
369369
SLOVENIAN = "sl"
370370
SWEDISH = "sv"
371371
TURKISH = "tr"
372+
UKRAINIAN = "uk"
372373
CHINESE = "zh"
373374

374375

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,6 @@ def output_document_path(tmpdir):
395395
"SL": "protonski žarek",
396396
"SV": "protonstråle",
397397
"TR": "proton ışını",
398+
"UK": "протонний пучок",
398399
"ZH": "质子束",
399400
}

0 commit comments

Comments
 (0)