Skip to content

Commit abf1010

Browse files
committed
feat: Add ukrainian language code and tests
1 parent 254d977 commit abf1010

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [Unreleased]
9+
### Added
10+
* Added Ukrainian language code
11+
12+
813
## [1.9.0] - 2025-02-21
914
### Added
1015
* Allow specifying the API version to use. This is mostly for users who have an
@@ -150,6 +155,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
150155
Initial version.
151156

152157

158+
[Unreleased]: https://github.com/DeepLcom/deepl-java/compare/v1.9.0...HEAD
153159
[1.9.0]: https://github.com/DeepLcom/deepl-java/compare/v1.8.1...v1.9.0
154160
[1.8.1]: https://github.com/DeepLcom/deepl-java/compare/v1.8.0...v1.8.1
155161
[1.8.0]: https://github.com/DeepLcom/deepl-java/compare/v1.7.0...v1.8.0

deepl-java/src/main/java/com/deepl/api/LanguageCode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public class LanguageCode {
113113
/** Turkish language code, may be used as source or target language. */
114114
public static final String Turkish = "tr";
115115

116+
/** Ukrainian language code, may be used as source or target language. */
117+
public static final String Ukrainian = "uk";
118+
116119
/** Chinese language code, may be used as source or target language. */
117120
public static final String Chinese = "zh";
118121

deepl-java/src/test/java/com/deepl/api/TestBase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public class TestBase {
8080
exampleText.put("sl", "protonski žarek");
8181
exampleText.put("sv", "protonstråle");
8282
exampleText.put("tr", "proton ışını");
83+
exampleText.put("uk", "Протонний промінь");
8384
exampleText.put("zh", "质子束");
8485

8586
String tmpdir = System.getProperty("java.io.tmpdir");

0 commit comments

Comments
 (0)