Skip to content

Commit

Permalink
[ES-311] (#1244)
Browse files Browse the repository at this point in the history
Signed-off-by: Venkata Saidurga Polamraju <[email protected]>
  • Loading branch information
pvsaidurga authored Apr 25, 2024
1 parent 11db0cb commit a76b1b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private byte[] b64Decode(String value) {

//Converts an array of two-letter language codes to their corresponding ISO 639-2/T language codes.
private List<String> convertLangCodesToISO3LanguageCodes(String[] langCodes) {
if(langCodes == null || langCodes.length == 0)
if(langCodes == null || langCodes.length == 0 || (langCodes.length == 1 && langCodes[0].isEmpty()))
return List.of("eng");
return Arrays.stream(langCodes)
.map(langCode -> {
Expand Down

0 comments on commit a76b1b6

Please sign in to comment.