Skip to content

Commit

Permalink
chore: add check for keepRemoved in failOnUpdate
Browse files Browse the repository at this point in the history
Issue #666
  • Loading branch information
cravend authored Sep 12, 2023
1 parent 4644d1a commit a06cdf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ export default class i18nTransform extends Transform {

if (this.options.failOnUpdate) {
const addCount = uniqueCount[namespace] - mergeCount
if (addCount + restoreCount + oldCount !== 0) {
const unreferencedCount = this.options.keepRemoved ? oldCount : 0;
if (addCount + restoreCount + oldCount - unreferencedCount !== 0) {
this.parserHadUpdate = true
continue
}
Expand Down

0 comments on commit a06cdf2

Please sign in to comment.