Skip to content

Commit

Permalink
Merge pull request #145 from malpalma/invalid-chars-in-translations-fix
Browse files Browse the repository at this point in the history
invalid characters in translations fix (" -> ')
  • Loading branch information
mndzielski authored Jun 7, 2022
2 parents 16d36bd + f378b10 commit 4bb37ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private EnumMap<Language, String> mapTranslationsFromJsonArray(JsonArray jsonArr
for (JsonElement t : jsonArray) {
String translationLanguageString = t.getAsJsonObject().get("to").getAsString().toLowerCase();
if (isLanguageSupported(translationLanguageString) && !translationLanguageString.equals(detectedLanguage)) {
String translation = t.getAsJsonObject().get("text").getAsString();
String translation = t.getAsJsonObject().get("text").getAsString().replace('"', '\'');
translationMap.put(Language.fromIsoCode(translationLanguageString), translation);
}
}
Expand Down

0 comments on commit 4bb37ae

Please sign in to comment.