Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New language Arabic (ar) #44

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions DeepL/LanguageCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace DeepL {
/// <see cref="ITranslator.GetTargetLanguagesAsync" />.
/// </summary>
public static class LanguageCode {
/// <summary>Arabic language code, may be used as source or target language.</summary>
public const string Arabic = "ar";

/// <summary>Bulgarian language code, may be used as source or target language.</summary>
public const string Bulgarian = "bg";

Expand Down
2 changes: 2 additions & 0 deletions DeepLTests/BaseDeepLTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down