Flatten thread: localize missing string
Bug: twpowertools:157
Change-Id: Iee619a271bf5ef85531071cfdad17d766fe5e8ab
diff --git a/src/contentScripts/communityConsole/flattenThreads/components/ReplyButton.js b/src/contentScripts/communityConsole/flattenThreads/components/ReplyButton.js
index 5dc7d59..a8aeaba 100644
--- a/src/contentScripts/communityConsole/flattenThreads/components/ReplyButton.js
+++ b/src/contentScripts/communityConsole/flattenThreads/components/ReplyButton.js
@@ -1,6 +1,6 @@
import '@material/web/button/outlined-button.js';
-import {msg} from '@lit/localize';
+import {msg, str} from '@lit/localize';
import {css, html} from 'lit';
import {waitFor} from 'poll-until-promise';
@@ -32,8 +32,8 @@
return html`
<md-outlined-button
label="${msg('Reply', {
- desc: 'Button which is used to open the reply box.',
- })}"
+ desc: 'Button which is used to open the reply box.',
+ })}"
@click=${this.openReplyEditor}>
</md-outlined-button>
`;
@@ -42,7 +42,8 @@
#defaultReply(messagePayload) {
const quoteHeader = document.createElement('div');
const italics = document.createElement('i');
- italics.textContent = this.extraInfo?.authorName + ' said:';
+ const authorName = this.extraInfo?.authorName;
+ italics.textContent = msg(str`${authorName} said:`);
quoteHeader.append(italics);
const quote = document.createElement('blockquote');