Skip to content

Commit

Permalink
Campaign Page: Strings with twig translation in JS (#2845)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Jan 6, 2025
1 parent 4b3c284 commit 6b89536
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/pages/campaign/campaing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $(document).ready(function() {
} else if (data === 'list') {
return campaignPageTrans.list;
} else if (data === 'ad') {
return '{{ "Ad"|trans }}';
return campaignPageTrans.ad;
}
return data;
},
Expand Down Expand Up @@ -112,11 +112,11 @@ $(document).ready(function() {
responsivePriority: 3,
render: function(data, type) {
if (data === 'plays') {
return '{{ "Plays"|trans }}';
return campaignPageTrans.plays;
} else if (data === 'budget') {
return '{{ "Budget"|trans }}';
return campaignPageTrans.budget;
} else if (data === 'imp') {
return '{{ "Impressions"|trans }}';
return campaignPageTrans.impressions;
}
return data;
},
Expand Down

0 comments on commit 6b89536

Please sign in to comment.