Skip to content

Commit

Permalink
[ES-311]
Browse files Browse the repository at this point in the history
Signed-off-by: Venkata Saidurga Polamraju <[email protected]>
  • Loading branch information
pvsaidurga committed Apr 15, 2024
1 parent c1f8f8f commit 7359848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,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 7359848

Please sign in to comment.