Skip to content

Commit

Permalink
Don't translate when already translated.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 committed Jun 20, 2024
1 parent f09541a commit b7639de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ module.exports = [

angular.forEach($scope.operators, function(operatorGroupedByType) {
angular.forEach(operatorGroupedByType, function(operator) {
operator.value = $translate.instant(operator.value);
// Only translate when not translated already; otherwise, we end up with something like <
if (!['<', '<=', '>', '>='].includes(operator.value)) {
operator.value = $translate.instant(operator.value);
}
});
});

Expand Down

0 comments on commit b7639de

Please sign in to comment.