Skip to content

Commit

Permalink
fix: source language equals target language no translation needed (#443)
Browse files Browse the repository at this point in the history
* fix: source language equals target language no translation needed

* fix linting

* add null check
  • Loading branch information
tamasdomokos committed Sep 22, 2022
1 parent 3fdc420 commit 171e240
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,11 @@ public void updateParticipant(String identifier,
String language
= translationLanguageExtension.getTranslationLanguage();

this.updateParticipantTargetLanguage(identifier, language);
if (participant.getSourceLanguage() != null &&
!participant.getSourceLanguage().equals(language))
{
this.updateParticipantTargetLanguage(identifier, language);
}
}
else
{
Expand Down

0 comments on commit 171e240

Please sign in to comment.