Skip to content

Commit 7397518

Browse files
New languages Indonesian (id) and Turkish (tr): add language code constants and tests
1 parent f1494df commit 7397518

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

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

88
## [Unreleased]
99
### Added
10+
* New languages available: Indonesian (`'id'`) and Turkish (`'tr'`). Add language code constants and tests.
11+
12+
Note: older library versions also support the new languages, this update only adds new code constants.
1013
### Changed
1114
### Deprecated
1215
### Removed

deepl/translator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def remove_regional_variant(language: Union[str]) -> str:
330330
FINNISH = "fi"
331331
FRENCH = "fr"
332332
HUNGARIAN = "hu"
333+
INDONESIAN = "id"
333334
ITALIAN = "it"
334335
JAPANESE = "ja"
335336
LITHUANIAN = "lt"
@@ -344,6 +345,7 @@ def remove_regional_variant(language: Union[str]) -> str:
344345
SLOVAK = "sk"
345346
SLOVENIAN = "sl"
346347
SWEDISH = "sv"
348+
TURKISH = "tr"
347349
CHINESE = "zh"
348350

349351

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def output_document_path(tmpdir):
358358
"FI": "protonisäde",
359359
"FR": "faisceau de protons",
360360
"HU": "protonnyaláb",
361+
"ID": "berkas proton",
361362
"IT": "fascio di protoni",
362363
"JA": "陽子ビーム",
363364
"LT": "protonų spindulys",
@@ -372,5 +373,6 @@ def output_document_path(tmpdir):
372373
"SK": "protónový lúč",
373374
"SL": "protonski žarek",
374375
"SV": "protonstråle",
376+
"TR": "proton ışını",
375377
"ZH": "质子束",
376378
}

0 commit comments

Comments
 (0)