Skip to content

Commit

Permalink
fix: translation key check
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Sep 5, 2023
1 parent 126fa5b commit c3709b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-changed-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function compareObjects(obj1, obj2, parentPath = "") {
obj2[key],
parentPath ? `${parentPath}.${key}` : key
);
} else if (obj1[key] !== obj2[key]) {
} else if (obj1[key] !== obj2[key] && obj2[key] !== undefined) {
const title = `Translation source ${parentPath}.${key} has changed`;
const message = `Consider running \`node scripts/remove-outdated-translations.js ${parentPath}.${key}\` to reset existing translations.`;
console.log(
Expand Down

0 comments on commit c3709b4

Please sign in to comment.