Skip to content

Commit

Permalink
fix the bug of target language error
Browse files Browse the repository at this point in the history
  • Loading branch information
xflcx1991 committed Aug 28, 2020
1 parent 69f8738 commit 5ef6a45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ protected String translate(Language sLang, Language tLang, String text) throws E
String lvSourceLang = sLang.getLanguageCode().substring(0, 2).toLowerCase();
lvSourceLang = omegatLang2YoudaoLang(lvSourceLang);

String lvTargetLang = sLang.getLanguageCode().substring(0, 2).toLowerCase();
String lvTargetLang = tLang.getLanguageCode().substring(0, 2).toLowerCase();
lvTargetLang = omegatLang2YoudaoLang(lvTargetLang);

// 获取应用 ID——appKey
Expand Down

0 comments on commit 5ef6a45

Please sign in to comment.