Normalize i18n() calls to prepare for ICU migration

This commit is contained in:
Jamie Kyle
2023-03-28 11:26:46 -07:00
committed by GitHub
parent 7c8e7c1013
commit c02c8d9640
17 changed files with 377 additions and 273 deletions

View File

@@ -765,7 +765,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
fromContact?.getTitle() ?? window.i18n('unknownContact');
return {
emoji,
text: window.i18n('icu:message--giftBadge--preview--sent', {
text: window.i18n('icu:message--donation--preview--sent', {
recipient,
}),
};
@@ -776,10 +776,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
emoji,
text:
giftBadge.state === GiftBadgeStates.Unopened
? window.i18n('icu:message--giftBadge--preview--unopened', {
? window.i18n('icu:message--donation--preview--unopened', {
sender,
})
: window.i18n('icu:message--giftBadge--preview--redeemed'),
: window.i18n('icu:message--donation--preview--redeemed'),
};
}