Migrate more strings to translation keys (#11532)
This commit is contained in:
parent
c853257d54
commit
85be845f16
89 changed files with 5313 additions and 4434 deletions
|
@ -25,12 +25,12 @@ export class LegacyCallAnswerEventPreview implements IPreview {
|
|||
public getTextFor(event: MatrixEvent, tagId?: TagID): string {
|
||||
if (shouldPrefixMessagesIn(event.getRoomId()!, tagId)) {
|
||||
if (isSelf(event)) {
|
||||
return _t("You joined the call");
|
||||
return _t("event_preview|m.call.answer|you");
|
||||
} else {
|
||||
return _t("%(senderName)s joined the call", { senderName: getSenderName(event) });
|
||||
return _t("event_preview|m.call.answer|user", { senderName: getSenderName(event) });
|
||||
}
|
||||
} else {
|
||||
return _t("Call in progress");
|
||||
return _t("event_preview|m.call.answer|dm");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue