Flatten threads: localize missing string

The label "Nested view" hadn't been localized, and was instead hardcoded
into the code. This CL adds localization for this string.

Bug: twpowertools:153
Change-Id: I4dc50c0594548f8c77e694ca497f3f5b6c171240
diff --git a/src/contentScripts/communityConsole/threadToolbar/components/index.js b/src/contentScripts/communityConsole/threadToolbar/components/index.js
index 36df710..03ee2eb 100644
--- a/src/contentScripts/communityConsole/threadToolbar/components/index.js
+++ b/src/contentScripts/communityConsole/threadToolbar/components/index.js
@@ -3,13 +3,15 @@
 import '@material/web/switch/switch.js';
 
 import consoleCommonStyles from '!!raw-loader!../../../../static/css/common/console.css';
-import {css, html, LitElement, nothing, unsafeCSS} from 'lit';
+import {msg} from '@lit/localize';
+import {css, html, nothing, unsafeCSS} from 'lit';
 import {createRef, ref} from 'lit/directives/ref.js';
 
+import {I18nLitElement} from '../../../../common/litI18nUtils.js';
 import {SHARED_MD3_STYLES} from '../../../../common/styles/md3.js';
 import {kEventFlattenThreadsUpdated} from '../constants.js';
 
-export default class TwptThreadToolbarInject extends LitElement {
+export default class TwptThreadToolbarInject extends I18nLitElement {
   static properties = {
     options: {type: Object},
   };
@@ -66,8 +68,12 @@
   renderFlattenRepliesSwitch() {
     if (!this.options.flattenthreads) return nothing;
 
+    const nestedViewMsg = msg('Nested view', {
+      desc:
+          'Label for the switch which lets users enable/disable the nested view in a thread.',
+    });
     return html`
-      <md-formfield label="Nested view">
+      <md-formfield label="${nestedViewMsg}">
         <md-switch ${ref(this.nestedViewRef)}
             ?selected=${!this.options?.flattenthreads_switch_enabled}
             @click=${this._flattenThreadsChanged}>
diff --git a/src/lit-locales/source/ar.xlf b/src/lit-locales/source/ar.xlf
index edfb86f..84da080 100644
--- a/src/lit-locales/source/ar.xlf
+++ b/src/lit-locales/source/ar.xlf
@@ -21,6 +21,10 @@
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
       <target><x id="0" equiv-text="${authorName}"/> قال:</target>
       </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
     </body>
   </file>
 </xliff>
diff --git a/src/lit-locales/source/ca.xlf b/src/lit-locales/source/ca.xlf
index 28db66e..3553adc 100644
--- a/src/lit-locales/source/ca.xlf
+++ b/src/lit-locales/source/ca.xlf
@@ -21,6 +21,11 @@
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
         <target><x id="0" equiv-text="${authorName}"/> va dir:</target>
       </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <target>Vista anidada</target>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
     </body>
   </file>
 </xliff>
diff --git a/src/lit-locales/source/de.xlf b/src/lit-locales/source/de.xlf
index a96e097..66fbce0 100644
--- a/src/lit-locales/source/de.xlf
+++ b/src/lit-locales/source/de.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/es.xlf b/src/lit-locales/source/es.xlf
index 6161009..3ff72c1 100644
--- a/src/lit-locales/source/es.xlf
+++ b/src/lit-locales/source/es.xlf
@@ -21,6 +21,11 @@
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
         <target><x id="0" equiv-text="${authorName}"/> dijo:</target>
       </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <target>Vista anidada</target>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
     </body>
   </file>
 </xliff>
diff --git a/src/lit-locales/source/fr.xlf b/src/lit-locales/source/fr.xlf
index 399d109..ecaf7f5 100644
--- a/src/lit-locales/source/fr.xlf
+++ b/src/lit-locales/source/fr.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/id.xlf b/src/lit-locales/source/id.xlf
index 249761a..789b10d 100644
--- a/src/lit-locales/source/id.xlf
+++ b/src/lit-locales/source/id.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/it.xlf b/src/lit-locales/source/it.xlf
index ddbbffa..589121b 100644
--- a/src/lit-locales/source/it.xlf
+++ b/src/lit-locales/source/it.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/ja.xlf b/src/lit-locales/source/ja.xlf
index e19f990..6d3d51b 100644
--- a/src/lit-locales/source/ja.xlf
+++ b/src/lit-locales/source/ja.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/ko.xlf b/src/lit-locales/source/ko.xlf
index 0fbf270..1c0fec8 100644
--- a/src/lit-locales/source/ko.xlf
+++ b/src/lit-locales/source/ko.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/pl.xlf b/src/lit-locales/source/pl.xlf
index c2ba788..b12990d 100644
--- a/src/lit-locales/source/pl.xlf
+++ b/src/lit-locales/source/pl.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/pt_BR.xlf b/src/lit-locales/source/pt_BR.xlf
index 537ef63..2fa97d2 100644
--- a/src/lit-locales/source/pt_BR.xlf
+++ b/src/lit-locales/source/pt_BR.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/ru.xlf b/src/lit-locales/source/ru.xlf
index c83aaa8..469bf7b 100644
--- a/src/lit-locales/source/ru.xlf
+++ b/src/lit-locales/source/ru.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/th.xlf b/src/lit-locales/source/th.xlf
index b96b74e..0ea88a7 100644
--- a/src/lit-locales/source/th.xlf
+++ b/src/lit-locales/source/th.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/tr.xlf b/src/lit-locales/source/tr.xlf
index c071dca..4136d7c 100644
--- a/src/lit-locales/source/tr.xlf
+++ b/src/lit-locales/source/tr.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>
diff --git a/src/lit-locales/source/vi.xlf b/src/lit-locales/source/vi.xlf
index d121a02..b9ccf93 100644
--- a/src/lit-locales/source/vi.xlf
+++ b/src/lit-locales/source/vi.xlf
@@ -17,6 +17,10 @@
 <trans-unit id="s6b0ed0c74667d28c">
   <source><x id="0" equiv-text="${authorName}"/> said:</source>
 </trans-unit>
+<trans-unit id="s98a0ccd6f423421f">
+  <source>Nested view</source>
+  <note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
+</trans-unit>
 </body>
 </file>
 </xliff>