Skip to content

Commit

Permalink
Fix extend for translation (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Aug 21, 2023
1 parent a3c58ed commit 30de46e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/editor-core/bottombar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Bottombar.prototype.render = function(object) {
const readOnlyModeOn = (app?.readOnlyMode === true);

// Get topbar trans
const newBottomBarTrans = $.extend(toolbarTrans, topbarTrans);
const newBottomBarTrans = $.extend({}, toolbarTrans, topbarTrans);

const checkHistory = app.checkHistory();
newBottomBarTrans.undoActiveTitle =
Expand Down
2 changes: 1 addition & 1 deletion ui/src/editor-core/topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Topbar.prototype.render = function() {
mainObject.duration = Math.round(Number(mainObject.duration) * 100) / 100;

// Get topbar trans
const newTopbarTrans = $.extend(toolbarTrans, topbarTrans, editorsTrans);
const newTopbarTrans = $.extend({}, toolbarTrans, topbarTrans, editorsTrans);

// Compile layout template with data
const html = topbarTemplate({
Expand Down

0 comments on commit 30de46e

Please sign in to comment.