diff --git a/CHANGELOG.md b/CHANGELOG.md index f4ec632..2458b1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Both paths will continue to work in the v2 version of the API, but `/v2/document` is the intended one. * Made `DeepLException` and subclasses, `Usage` and `JsonFieldsStruct` constructors public, to allow for easier mocking of the `ITranslator` interface. * [#40](https://github.com/DeepLcom/deepl-dotnet/issues/40) thanks to [PascalVorwerkSaixon](https://github.com/PascalVorwerkSaxion) +* New language available: Arabic (`'ar'`). Add + language code constants and tests. + Note: older library versions also support the new languages, this update only + adds new code constants. ## [1.8.0] - 2023-11-03 diff --git a/DeepL/LanguageCode.cs b/DeepL/LanguageCode.cs index d77fed1..199e306 100644 --- a/DeepL/LanguageCode.cs +++ b/DeepL/LanguageCode.cs @@ -9,6 +9,9 @@ namespace DeepL { /// . /// public static class LanguageCode { + /// Arabic language code, may be used as source or target language. + public const string Arabic = "ar"; + /// Bulgarian language code, may be used as source or target language. public const string Bulgarian = "bg"; diff --git a/DeepLTests/BaseDeepLTest.cs b/DeepLTests/BaseDeepLTest.cs index 34ac792..433eb36 100644 --- a/DeepLTests/BaseDeepLTest.cs +++ b/DeepLTests/BaseDeepLTest.cs @@ -63,6 +63,8 @@ protected static MockHttpMessageHandler getMockHandler(String responseMessage) { protected static string ExampleText(string language) { switch (language) { + case "ar": + return "شعاع البروتون"; case "bg": return "протонен лъч"; case "cs":