From 48b702133b2e3b078a76a9f157c170f11beb8ab4 Mon Sep 17 00:00:00 2001 From: "marc.sirisak" Date: Tue, 10 Sep 2024 16:46:35 +0200 Subject: [PATCH] feat(compatibility-page); update compatibility page to be tchap friendly --- modules/tchap-translations/tchap_translations.json | 8 ++++++++ src/async-components/structures/CompatibilityView.tsx | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/modules/tchap-translations/tchap_translations.json b/modules/tchap-translations/tchap_translations.json index 6083c38048..1192c4f129 100644 --- a/modules/tchap-translations/tchap_translations.json +++ b/modules/tchap-translations/tchap_translations.json @@ -797,5 +797,13 @@ "migrating_crypto": { "en": "Hang tight. We are updating %(brand)s to make encryption faster and more reliable. Don't worry, it can take some time", "fr": "Accrochez-vous. Nous mettons à jour %(brand)s pour que le chiffrement soit plus rapide et plus fiable. N'ayez crainte, cela peut prendre jusqu'à 10 minutes" + }, + "incompatible_browser|continue_warning": { + "en": "I still want to use Tchap with this browser", + "fr": "Je souhaite tout de même utiliser Tchap avec ce navigateur" + }, + "incompatible_browser|title": { + "en": "Your browser is not optimal to use Tchap", + "fr": "Votre navigateur n'est pas optimal pour l'utilisation de Tchap" } } diff --git a/src/async-components/structures/CompatibilityView.tsx b/src/async-components/structures/CompatibilityView.tsx index 9f61fa0f97..0816bdfe3d 100644 --- a/src/async-components/structures/CompatibilityView.tsx +++ b/src/async-components/structures/CompatibilityView.tsx @@ -96,7 +96,10 @@ const CompatibilityView: React.FC = ({ onAccept }) => {
- Element + {/* :TCHAP: compatibitily-warning-page*/} + {/* Element */} + Tchap + {/* end :TCHAP: */}

{_t("incompatible_browser|title")}

@@ -133,13 +136,15 @@ const CompatibilityView: React.FC = ({ onAccept }) => {
-
+ {/* :TCHAP: compatibitily-warning-page*/} + {/*

{_t("go_to_element_io")}

-
+
*/} + {/* end :TCHAP: */} );