Skip to content

Commit

Permalink
fix: fix array duplication after parse (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwooosh authored Jan 17, 2023
1 parent e7c4e69 commit a0a2b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@ class Parser {
let resStore = {};
if (this.options.removeUnusedKeys) {
// Merge two objects `resStore` and `resScan` deeply, returning a new merged object with the elements from both `resStore` and `resScan`.
const resMerged = deepMerge(this.resStore, this.resScan);
const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray;
const resMerged = deepMerge(this.resStore, this.resScan, { arrayMerge: overwriteMerge });

Object.keys(this.resStore).forEach((lng) => {
Object.keys(this.resStore[lng]).forEach((ns) => {
Expand Down

0 comments on commit a0a2b8f

Please sign in to comment.