Skip to content

Commit

Permalink
feat: New language Arabic (ar): add language code type and test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jones-dev committed Feb 8, 2024
1 parent 2b43827 commit 21b7d55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]
### Added
* New language available: Arabic (`'ar'`). Add language code constants and tests.

Note: older library versions also support the new language, this update only adds new code constants.


## [1.17.0] - 2024-02-06
### Added
* Added `output_format` parameter for document upload function, that indicates
Expand Down Expand Up @@ -284,6 +291,7 @@ Version increased to avoid conflicts with old packages on PyPI.
Initial version.


[Unreleased]: https://github.com/DeepLcom/deepl-python/compare/v1.17.0...HEAD
[1.17.0]: https://github.com/DeepLcom/deepl-python/compare/v1.16.1...v1.17.0
[1.16.1]: https://github.com/DeepLcom/deepl-python/compare/v1.16.0...v1.16.1
[1.16.0]: https://github.com/DeepLcom/deepl-python/compare/v1.15.0...v1.16.0
Expand Down
1 change: 1 addition & 0 deletions deepl/api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ def remove_regional_variant(language: Union[str, "Language"]) -> str:
"""Removes the regional variant from a language, e.g. EN-US gives EN"""
return str(language).upper()[0:2]

ARABIC = "ar"
BULGARIAN = "bg"
CZECH = "cs"
DANISH = "da"
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def output_document_path(output_dir_path):


example_text = {
"AR": "شعاع البروتون",
"BG": "протонен лъч",
"CS": "protonový paprsek",
"DA": "protonstråle",
Expand Down

0 comments on commit 21b7d55

Please sign in to comment.