Skip to content

Commit bdc2baf

Browse files
committed
update description translation
1 parent c2a76aa commit bdc2baf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/libs/ModifiedExpenseMessage.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,19 @@ function getPolicyRulesModifiedMessage(translate: LocalizedTranslate, fields: Po
223223
}
224224

225225
const updatedValue = value as string;
226+
226227
if (key === 'category') {
227228
return translate('iou.policyRulesModifiedFields.common', key, getDecodedCategoryName(updatedValue), isFirst);
228229
}
230+
229231
if (key === 'tag') {
230232
return translate('iou.policyRulesModifiedFields.common', key, getCommaSeparatedTagNameWithSanitizedColons(updatedValue), isFirst);
231233
}
232234

235+
if (key === 'comment') {
236+
return translate('iou.policyRulesModifiedFields.common', translate('common.description'), updatedValue, isFirst);
237+
}
238+
233239
return translate('iou.policyRulesModifiedFields.common', key, updatedValue, isFirst);
234240
});
235241

src/types/onyx/OriginalMessage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ type PolicyRulesModifiedFields = {
845845
/** The value that the tag was changed to */
846846
tag?: string;
847847

848+
/** The value that the comment was changed to */
849+
comment?: string;
850+
848851
/** The value that the description was changed to */
849852
description?: string;
850853

0 commit comments

Comments
 (0)