From 447c361d9dfe198f3bd7d394ab28f4bccec42597 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 9 Jan 2024 18:41:19 +0000 Subject: [PATCH] Fix unsafeAlert and grab safe urls from federation.json --- .../src/components/HostAlert/UnsafeAlert.tsx | 129 ++++++++---------- frontend/static/federation.json | 2 +- frontend/static/locales/ca.json | 3 +- frontend/static/locales/cs.json | 3 +- frontend/static/locales/de.json | 3 +- frontend/static/locales/en.json | 3 +- frontend/static/locales/es.json | 3 +- frontend/static/locales/eu.json | 3 +- frontend/static/locales/fr.json | 3 +- frontend/static/locales/handcrafted.py | 8 +- frontend/static/locales/it.json | 3 +- frontend/static/locales/ja.json | 3 +- frontend/static/locales/pl.json | 3 +- frontend/static/locales/pt.json | 3 +- frontend/static/locales/ru.json | 3 +- frontend/static/locales/sv.json | 3 +- frontend/static/locales/sw.json | 3 +- frontend/static/locales/th.json | 3 +- frontend/static/locales/zh-SI.json | 3 +- frontend/static/locales/zh-TR.json | 3 +- 20 files changed, 77 insertions(+), 113 deletions(-) diff --git a/frontend/src/components/HostAlert/UnsafeAlert.tsx b/frontend/src/components/HostAlert/UnsafeAlert.tsx index 9bf676fc..92fec5cb 100644 --- a/frontend/src/components/HostAlert/UnsafeAlert.tsx +++ b/frontend/src/components/HostAlert/UnsafeAlert.tsx @@ -3,6 +3,31 @@ import { AppContext, type UseAppStoreType } from '../../contexts/AppContext'; import { useTranslation, Trans } from 'react-i18next'; import { Paper, Alert, AlertTitle, Button, Link } from '@mui/material'; import { getHost } from '../../utils'; +import defaultFederation from '../../../static/federation.json'; + +function federationUrls(): string[] { + const urls: string[] = []; + + const removeProtocol = (url: string): string => { + return url.replace(/^https?:\/\/|\/\/$/, ''); + }; + + for (const key in defaultFederation) { + const mainnet = defaultFederation[key].mainnet; + const testnet = defaultFederation[key].testnet; + + // Add the URLs from the 'mainnet' and 'testnet' objects to the urls array + // if these are onion or i2p addresses + for (const safeOrigin of ['onion', 'i2p']) { + if (mainnet?.[safeOrigin]) urls.push(removeProtocol(mainnet[safeOrigin])); + if (testnet?.[safeOrigin]) urls.push(removeProtocol(testnet[safeOrigin])); + } + } + + return urls; +} + +export const safeUrls = federationUrls(); const UnsafeAlert = (): JSX.Element => { const { windowSize } = useContext(AppContext); @@ -11,15 +36,6 @@ const UnsafeAlert = (): JSX.Element => { const [unsafeClient, setUnsafeClient] = useState(false); - // To do. Read from Coordinators Obj. - const safeUrls = [ - 'robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion', - 'robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion', - 'robodevs7ixniseezbv7uryxhamtz3hvcelzfwpx3rvoipttjomrmpqd.onion', - 'robosats.i2p', - 'r7r4sckft6ptmk4r2jajiuqbowqyxiwsle4iyg4fijtoordc6z7a.b32.i2p', - ]; - const checkClient = (): void => { const unsafe = !safeUrls.includes(getHost()); setUnsafeClient(unsafe); @@ -38,69 +54,38 @@ const UnsafeAlert = (): JSX.Element => { else if (unsafeClient) { return ( - {windowSize.width > 57 ? ( - { - setShow(false); - }} - > - {t('Hide')} - - } - > - {t('You are not using RoboSats privately')} - - - Some features are disabled for your protection (e.g. chat) and you will not be able - to complete a trade without them. To protect your privacy and fully enable RoboSats, - use{' '} - - - Tor Browser - - and visit the - - Onion - - site. - - - ) : ( - - {t('You are not using RoboSats privately')} - - You will not be able to complete a trade. Use - - Tor Browser - - and visit the - - Onion - {' '} - site. - -
- -
-
- )} + 57 ? '7em' : '8em' }} + action={ + + } + > + {t('You are not using RoboSats privately')} + + To protect your data and privacy use + + Tor Browser + + and visit a federation hosted + + Onion + + site. Or + + host your own app. + + +
); } else { diff --git a/frontend/static/federation.json b/frontend/static/federation.json index 0816d430..2978800e 100644 --- a/frontend/static/federation.json +++ b/frontend/static/federation.json @@ -164,7 +164,7 @@ "i2p": "" }, "testnet": { - "onion": "http:///ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion", + "onion": "http://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion", "clearnet": "", "i2p": "" }, diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json index 3d1a99d3..5a4ac243 100644 --- a/frontend/static/locales/ca.json +++ b/frontend/static/locales/ca.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Personalitza l'àrea de visió", "Freeze viewports": "Congela l'àrea de visió", - "desktop_unsafe_alert": "Algunes funcions (com el xat) estan deshabilitades per protegir i sense elles no podràs completar un intercanvi. Per protegir la teva privacitat i habilitar RoboSats per complet, fes servir <1>Tor Browser i visita el <3>Onion site.", - "phone_unsafe_alert": "No podràs completar un intercanvi. Fes servir el navegador <1>Tor Browser i visita la web <3>Onion privada.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Diga'ns com podria millorar la plataforma (<1>Telegram / <3>Github)", "open_dispute": "Per obrir una disputa has d'esperar <1><1/>", "Waiting for maker bond": "Esperant la fiança del creador", diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json index 2952894c..c832dac5 100644 --- a/frontend/static/locales/cs.json +++ b/frontend/static/locales/cs.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Některé funkce byly vypnuty pro tvou bezpečnost (např. chat) bez níchž nebudeš moct dokončit obchod. Abys využil všechny funkce a ochranil své soukromí, použij <1>Tor Browser a navšťiv <3>Onion stránku.", - "phone_unsafe_alert": "Nebudeš moct dokončit obchod. Použij <1>Tor Browser a navšťiv <3>Onion stránku.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Dej nám vědět jak vylepšit platformu (<1>Telegram / <3>Github)", "open_dispute": "Chceš-li otevřít spor, musíš počkat <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json index ffe901af..146c6461 100644 --- a/frontend/static/locales/de.json +++ b/frontend/static/locales/de.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Einige Funktionen sind zu deinem Schutz deaktiviert (z.B. der Chat) und du kannst ohne sie keinen Handel abschließen. Um deine Privatsphäre zu schützen und RoboSats vollständig zu nutzen, verwende <1>Tor Browser und besuche die <3>Onion Seite.", - "phone_unsafe_alert": "Du wirst nicht in der Lage sein, einen Handel abzuschließen. Benutze <1>Tor Browser und besuche die <3>Onion Seite.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Sag uns, was wir verbessern können (<1>Telegram / <3>Github)", "open_dispute": "To open a dispute you need to wait <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json index ea8ce6eb..69824507 100644 --- a/frontend/static/locales/en.json +++ b/frontend/static/locales/en.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser and visit the <3>Onion site.", - "phone_unsafe_alert": "You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion site.", + "unsafe_alert": "To protect your data and privacy use <1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Let us know how the platform could improve (<1>Telegram / <3>Github)", "open_dispute": "To open a dispute you need to wait <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json index d0410039..1abe34b1 100644 --- a/frontend/static/locales/es.json +++ b/frontend/static/locales/es.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Personalizar vistas", "Freeze viewports": "Congelar vistas", - "desktop_unsafe_alert": "Algunas funciones (como el chat) están deshabilitadas para protegerte y sin ellas no podrás completar un intercambio. Para proteger tu privacidad y habilitar RoboSats por completo, usa el <1>Navegador Tor y visita el <3>sitio cebolla.", - "phone_unsafe_alert": "No podrás completar los intercambios. Usa el <1>Navegador Tor y visita el <3>sitio cebolla.", + "unsafe_alert": "Protege tus datos y privacidad usando <1>Tor Browser y visitando un <3>Onion de la federación. O hostea <5>tu propia app.", "let_us_know_hot_to_improve": "Dinos cómo podríamos mejorar la plataforma (<1>Telegram / <3>Github)", "open_dispute": "Para abrir una disputa debes esperar <1><1/>", "Waiting for maker bond": "Esperando la fianza del creador", diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json index 650c4574..926c3980 100644 --- a/frontend/static/locales/eu.json +++ b/frontend/static/locales/eu.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Ezaugarri batzuk ezgaituta daude zure babeserako (adib. txata) eta ezingo duzu trukea osatu haiek gabe. Zure pribatutasuna babesteko eta Robosats osoki gaitzeko, erabili <1>Tor Browser eta bisitatu <3>Onion gunea.", - "phone_unsafe_alert": "Ezingo duzu trukea osatu. Erabili <1>Tor Browser eta bisitatu <3>Onion gunea.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Kontaiguzu nola hobetu dezakegun (<1>Telegram / <3>Github)", "open_dispute": "Gatazka bat irekitzeko itxaron behar duzu <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json index 8a2a85ba..28837417 100644 --- a/frontend/static/locales/fr.json +++ b/frontend/static/locales/fr.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Personnaliser fenêtres d'affichage", "Freeze viewports": "Geler fenêtres d'affichage", - "desktop_unsafe_alert": "Certaines fonctionnalités sont désactivées pour votre protection (e.g, le chat) et vous ne pourrez pas effectuer une transaction sans elles. Pour protéger votre vie privée et activer pleinement RoboSats, utilisez <1>Tor Browser et visitez le site <3>Onion.", - "phone_unsafe_alert": "Vous ne serez pas en mesure d'effectuer un échange. Utilisez <1>Tor Browser et visitez le site <3>Onion.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Faites-nous savoir comment la plateforme pourrait être améliorée (<1>Telegram / <3>Github)", "open_dispute": "Pour ouvrir un litige, vous devez attendre <1><1/>", "Waiting for maker bond": "Attente de l'auteur de la caution", diff --git a/frontend/static/locales/handcrafted.py b/frontend/static/locales/handcrafted.py index 47d522e4..2535b5ca 100644 --- a/frontend/static/locales/handcrafted.py +++ b/frontend/static/locales/handcrafted.py @@ -5,12 +5,8 @@ from collections import OrderedDict phrases = OrderedDict( [ ( - "desktop_unsafe_alert", - "Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser and visit the <3>Onion site.", - ), - ( - "phone_unsafe_alert", - "You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion site.", + "unsafe_alert", + "To protect your data and privacy use <1>Tor Browser and visit a federation hosted <3>Onion site. Or <5>host your own app.", ), ( "let_us_know_hot_to_improve", diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json index d6d963f2..6f835e9c 100644 --- a/frontend/static/locales/it.json +++ b/frontend/static/locales/it.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Personalizza le finestre di visualizzazione", "Freeze viewports": "Fissa le finestre di visualizzazione", - "desktop_unsafe_alert": "Alcune funzionalità (come la chat) sono disabilitate per le tua sicurezza e non sarai in grado di completare un'operazione senza di esse. Per proteggere la tua privacy e abilitare completamente RoboSats, usa <1>Tor Browser e visita il sito <3>Onion", - "phone_unsafe_alert": "Non sarai in grado di completare un'operazione. Usa <1>Tor Browser e visita il sito <3>Onion", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Facci sapere come migliorare la piattaforma (<1>Telegram / <3>Github)", "open_dispute": "Per aprire una contestazione devi attendere <1><1/>", "Waiting for maker bond": "In attesa della cauzione del maker", diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json index 5f151584..462a8ac2 100644 --- a/frontend/static/locales/ja.json +++ b/frontend/static/locales/ja.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "表示のカスタマイズ", "Freeze viewports": "表示を凍結", - "desktop_unsafe_alert": "いくつかの機能(チャットなど)は、保護のために無効になっており、それらなしでは取引を完了できません。プライバシーを保護し、RoboSatsを完全に有効にするには、<1> Torブラウザを使用して、<3>オニオンサイトを訪問してください。", - "phone_unsafe_alert": "取引を完了できません。 <1> Torブラウザを使用して、<3>オニオンサイトを訪問してください。", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "プラットフォームをどのように改善できるか教えてください (<1>Telegram / <3>Github)", "open_dispute": "紛争を開始するには、<1>待機する必要があります", "Waiting for maker bond": "メーカーの担保金を待っています", diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json index 86b22aa9..35f628a7 100644 --- a/frontend/static/locales/pl.json +++ b/frontend/static/locales/pl.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Niektóre funkcje są wyłączone dla Twojej ochrony (np. czat) i bez nich nie będziesz w stanie dokonać transakcji. Aby chronić swoją prywatność i w pełni włączyć RoboSats, użyj <1>Tor Browser i odwiedź <3>onion.", - "phone_unsafe_alert": "Nie będziesz w stanie sfinalizować transakcji. Użyj <1>Tor Browser i odwiedź witrynę <3>Onion.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Daj nam znać, jak platforma mogłaby się ulepszyć (<1>Telegram / <3>Github)", "open_dispute": "To open a dispute you need to wait <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json index a850e86f..36d60e6b 100644 --- a/frontend/static/locales/pt.json +++ b/frontend/static/locales/pt.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Alguns recursos estão desativados para sua proteção (por exemplo, chat) e você não poderá concluir uma negociação sem eles. Para proteger sua privacidade e utilizar todas as possibilidades do RoboSats, use o <1>Navegador Tor e visite o site <3>Onion.", - "phone_unsafe_alert": "Você não será capaz de concluir uma negociação. Use o <1>Navegador Tor e visite o site <3>Onion.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Deixe-nos saber como a plataforma pode melhorar (<1>Telegram / <3>Github)", "open_dispute": "To open a dispute you need to wait <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json index 31b721d2..d7d44e26 100644 --- a/frontend/static/locales/ru.json +++ b/frontend/static/locales/ru.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Настройка видовых экранов", "Freeze viewports": "Заморозить видовые экраны", - "desktop_unsafe_alert": "Некоторые функции отключены для Вашей безопасности (чат) и без них у Вас не будет возможности завершить сделку. Чтобы защитить Вашу конфиденциальность и полностью включить RoboSats, используйте <1>Tor Browser и посетите <3>Onion сайт.", - "phone_unsafe_alert": "У Вас не будет возможности завершить сделку. Используйте <1>Tor Browser и посетите <3>Onion сайт.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Сообщите нам, как можно улучшить платформу (<1>Telegram / <3>Github)", "open_dispute": "Для открытия диспута нужно подождать <1><1/>", "Waiting for maker bond": "Ожидание залога мейкера", diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json index 6392d729..0be7103a 100644 --- a/frontend/static/locales/sv.json +++ b/frontend/static/locales/sv.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "Vissa funktioner är inaktiverade för din säkerhet (t.ex. chatten) och du kommer inte att kunna slutföra en trade utan dom. Använd <1>Tor Browser och besök <3>Onion-siten för att skydda din integritet och använda RoboSats till fullo.", - "phone_unsafe_alert": "Du kommer inte att kunna slutföra en trade. Använd <1>Tor Browser och besök <3>Onion-siten.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Tala om för oss hur plattformen kan förbättras (<1>Telegram / <3>Github)", "open_dispute": "För att öppna en dispyt behöver du vänta <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json index e7588b39..44bf1b9a 100644 --- a/frontend/static/locales/sw.json +++ b/frontend/static/locales/sw.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Sanidi maoni", "Freeze viewports": "Gandamiza maoni", - "desktop_unsafe_alert": "Baadhi ya vipengele vimelemazwa kwa ajili ya ulinzi wako (k.m. mazungumzo) na hautaweza kukamilisha biashara bila hivyo. Ili kulinda faragha yako na kuwezesha kikamilifu RoboSats, tumia <1>Tor Browser na tembelea tovuti ya <3>Onion.", - "phone_unsafe_alert": "Hutaweza kukamilisha biashara. Tumia <1>Tor Browser na tembelea tovuti ya <3>Onion.", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "Tuambie jinsi jukwaa linavyoweza kuboreshwa (<1>Telegram / <3>Github)", "open_dispute": "Kufungua mzozo unahitaji kusubiri <1><1/>", "Waiting for maker bond": "Kusubiri dhamana ya mtengenezaji", diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json index 6e118c42..8157e2b8 100644 --- a/frontend/static/locales/th.json +++ b/frontend/static/locales/th.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "Customize viewports", "Freeze viewports": "Freeze viewports", - "desktop_unsafe_alert": "ฟีเจอร์บางอย่างถูกระงับเพื่อปกปิดตัวตนของคุณ (เช่น การแชท) และคุณไม่สามารถทำการซื้อขายบิตคอยน์ได้ หากต้องการใช้งานทุกฟีเจอร์ของ RoboSats อย่างปลอดภัย กรุณาติดตั้ง <1>Tor Browser และใช้งานผ่านเว็บไซต์ <3>Onion", - "phone_unsafe_alert": "คุณไม่สามารถซื้อขายได้ กรุณาใช้ <1>Tor Browser และใช้งานผ่านเว็บไซต์ <3>Onion", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "บอกเราว่าเราควรปรับปรุงอย่างไร (<1>Telegram / <3>Github)", "open_dispute": "คุณต้องรอก่อนจึงจะสามารถร้องเรียนได้ <1><1/>", "Waiting for maker bond": "Waiting for maker bond", diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json index d6f8bd21..9169acf2 100644 --- a/frontend/static/locales/zh-SI.json +++ b/frontend/static/locales/zh-SI.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "自定义视口", "Freeze viewports": "冻结视口", - "desktop_unsafe_alert": "为了你的安全,一些功能(比如聊天)被禁用了。没有禁用的功能你将无法完成交易。为了保护你的隐私并完全启用 RoboSats,请使用 <1>Tor 浏览器访问<3>洋葱站点。", - "phone_unsafe_alert": "你将无法完成交易。请使用 <1>Tor 浏览器访问<3>洋葱站点。", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "让我们知道如何改进 (<1>Telegram / <3>Github)", "open_dispute": "要开始争议的话需要等 <1><1/>", "Waiting for maker bond": "正在等待挂单方的保证金", diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json index c87353c8..a75bb99b 100644 --- a/frontend/static/locales/zh-TR.json +++ b/frontend/static/locales/zh-TR.json @@ -667,8 +667,7 @@ "#82": "Phrases in pro/ToolBar/index.tsx", "Customize viewports": "自定義視口", "Freeze viewports": "凍結視口", - "desktop_unsafe_alert": "為了你的安全,一些功能(比如聊天)被禁用了。沒有禁用功能你將無法完成交易。為了保護你的隱私並完全啟用 Robosats,請使用 <1>Tor 瀏覽器訪問<3>洋蔥站點。", - "phone_unsafe_alert": "你將無法完成交易。請使用 <1>Tor 瀏覽器訪問<3>洋蔥站點。", + "unsafe_alert": "To protect your data and privacy use<1>Tor Browser and visit a federation hosted <3>Onion site. Or host your own <5>Client.", "let_us_know_hot_to_improve": "讓我們知道如何改進 (<1>Telegram / <3>Github)", "open_dispute": "要開始爭議的話需要等 <1><1/>", "Waiting for maker bond": "正在等待掛單方的保證金",