Skip to content

Commit 54e2d65

Browse files
committed
Translate with Mexican Spanish instead of basic Spanish
1 parent 2ea3811 commit 54e2d65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/wise/portal/presentation/web/controllers/author/project/TranslateProjectAPIController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private TranslateTextRequest buildTranslateTextRequest(String srcText, String sr
9191
private String convertLanguageToAWSCode(String language) throws IllegalArgumentException {
9292
return switch (language) {
9393
case "English" -> "en";
94-
case "Spanish" -> "es";
94+
case "Spanish" -> "es-MX";
9595
case "Italian" -> "it";
9696
case "Japanese" -> "ja";
9797
case "German" -> "de";

0 commit comments

Comments
 (0)