Prompt users to reload the CC when the extension updates
When the extension updates, it stops working in the Community Console.
Thus, this change adds logic so when the extension detects it has been
recently installed or updated it injects a banner to the top of the CC
with a message which prompts the user to reload the page.
Fixed: twpowertools:82
Change-Id: I0c901c72574c7c64d9ba94f56be96a12f7770049
diff --git a/src/lit-locales/source/ar.xlf b/src/lit-locales/source/ar.xlf
index 893f73a..8597246 100644
--- a/src/lit-locales/source/ar.xlf
+++ b/src/lit-locales/source/ar.xlf
@@ -26,6 +26,18 @@
<target>عَرض متداخِل</target>
<note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
</trans-unit>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/ca.xlf b/src/lit-locales/source/ca.xlf
index 3553adc..76b8cb4 100644
--- a/src/lit-locales/source/ca.xlf
+++ b/src/lit-locales/source/ca.xlf
@@ -26,6 +26,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/de.xlf b/src/lit-locales/source/de.xlf
index 66fbce0..92bfdc0 100644
--- a/src/lit-locales/source/de.xlf
+++ b/src/lit-locales/source/de.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/es.xlf b/src/lit-locales/source/es.xlf
index 3ff72c1..2303137 100644
--- a/src/lit-locales/source/es.xlf
+++ b/src/lit-locales/source/es.xlf
@@ -26,6 +26,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/fr.xlf b/src/lit-locales/source/fr.xlf
index 3ee36db..44fab08 100644
--- a/src/lit-locales/source/fr.xlf
+++ b/src/lit-locales/source/fr.xlf
@@ -24,6 +24,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/id.xlf b/src/lit-locales/source/id.xlf
index 789b10d..c706ab1 100644
--- a/src/lit-locales/source/id.xlf
+++ b/src/lit-locales/source/id.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/it.xlf b/src/lit-locales/source/it.xlf
index 589121b..b52109b 100644
--- a/src/lit-locales/source/it.xlf
+++ b/src/lit-locales/source/it.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/ja.xlf b/src/lit-locales/source/ja.xlf
index 6d3d51b..589042e 100644
--- a/src/lit-locales/source/ja.xlf
+++ b/src/lit-locales/source/ja.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/ko.xlf b/src/lit-locales/source/ko.xlf
index 1c0fec8..918259e 100644
--- a/src/lit-locales/source/ko.xlf
+++ b/src/lit-locales/source/ko.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/pl.xlf b/src/lit-locales/source/pl.xlf
index b12990d..85ff3ea 100644
--- a/src/lit-locales/source/pl.xlf
+++ b/src/lit-locales/source/pl.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</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 2fa97d2..a69913f 100644
--- a/src/lit-locales/source/pt_BR.xlf
+++ b/src/lit-locales/source/pt_BR.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/ru.xlf b/src/lit-locales/source/ru.xlf
index 85cf100..3f625c1 100644
--- a/src/lit-locales/source/ru.xlf
+++ b/src/lit-locales/source/ru.xlf
@@ -26,6 +26,18 @@
<target>Вложенный вид</target>
<note from="lit-localize">Label for the switch which lets users enable/disable the nested view in a thread.</note>
</trans-unit>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/th.xlf b/src/lit-locales/source/th.xlf
index 0ea88a7..2db0fdf 100644
--- a/src/lit-locales/source/th.xlf
+++ b/src/lit-locales/source/th.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/tr.xlf b/src/lit-locales/source/tr.xlf
index 4136d7c..63b2570 100644
--- a/src/lit-locales/source/tr.xlf
+++ b/src/lit-locales/source/tr.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>
diff --git a/src/lit-locales/source/vi.xlf b/src/lit-locales/source/vi.xlf
index b9ccf93..b82dae0 100644
--- a/src/lit-locales/source/vi.xlf
+++ b/src/lit-locales/source/vi.xlf
@@ -21,6 +21,18 @@
<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>
+<trans-unit id="s0f92c01a67197f53">
+ <source>The TW Power Tools extension has been installed. Please reload this page so that it is activated.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been installed, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sb2c523c904424868">
+ <source>The TW Power Tools extension has been updated. Please reload this page so that it continues to work properly.</source>
+ <note from="lit-localize">Message shown as a banner when the extension has been updated, to let the user know that they should reload the page.</note>
+</trans-unit>
+<trans-unit id="sd5b6130b4937488c">
+ <source>Reload</source>
+ <note from="lit-localize">Button which reloads the current page.</note>
+</trans-unit>
</body>
</file>
</xliff>