Skip to content

Commit

Permalink
feat: actualize MT engines (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Jul 26, 2023
1 parent 7ba701e commit f696fa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.Data;

@Data
public class YandexTranslateCredentials implements Credentials {
public class ModernMtTranslateCredentials implements Credentials {

private String apiKey;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

public enum Type implements EnumConverter<Type> {

GOOGLE, GOOGLE_AUTOML, MICROSOFT, YANDEX, DEEPL, AMAZON, WATSON, CROWDIN;
GOOGLE, GOOGLE_AUTOML, MICROSOFT, DEEPL, AMAZON, WATSON, MODERNMT, CROWDIN;

public static Type from(String value) {
return Type.valueOf(value.toUpperCase());
}


@Override
public String to(Type v) {
return v.name().toLowerCase();
Expand Down

0 comments on commit f696fa6

Please sign in to comment.