Add selfhosting translation keys

This commit is contained in:
Reckless_Satoshi 2022-08-22 16:53:27 -07:00
parent d6f82886fd
commit 6ff8df6dad
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 12 additions and 5 deletions

View File

@ -36,14 +36,17 @@ class UnsafeAlert extends Component {
render() {
console.log('1111')
const { t, i18n} = this.props;
// If alert is hidden return null
if (!this.state.show){return null}
// Show selfhosted notice
if (this.state.isSelfhosted){
return(
<div>
<Paper elevation={6} className="alertUnsafe">
<Alert severity="success" sx={{maxHeight:"100px"}}
action={<Button onClick={() => this.setState({show:false})}>{t("Hide")}</Button>}
<Alert severity="success" sx={{maxHeight:"120px"}}
action={<Button color="success" onClick={() => this.setState({show:false})}>{t("Hide")}</Button>}
>
<AlertTitle>{t("You are self-hosting RoboSats")}</AlertTitle>
{t("RoboSats is served from your own node granting you the strongest security and privacy.")}
@ -54,7 +57,7 @@ class UnsafeAlert extends Component {
}
// Show unsafe alert
if (!this.safe_urls.includes(this.getHost()) & this.state.show & !this.state.isSelfhosted){
if (!this.safe_urls.includes(this.getHost())){
return(
<div>
<MediaQuery minWidth={800}>

View File

@ -4,6 +4,8 @@
"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</1> and visit the <3>Onion</3> site.",
"phone_unsafe_alert": "You will not be able to complete a trade. Use <1>Tor Browser</1> and visit the <3>Onion</3> site.",
"Hide":"Hide",
"You are self-hosting RoboSats":"You are self-hosting RoboSats",
"RoboSats is served from your own node granting you the strongest security and privacy.":"RoboSats is served from your own node granting you the strongest security and privacy.",
"USER GENERATION PAGE - UserGenPage.js": "Landing Page and User Generation",

View File

@ -4,7 +4,9 @@
"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</1> y visita el <3>sitio cebolla</3>.",
"phone_unsafe_alert": "No podrás completar un intercambio. Usa el <1>Navegador Tor</1> y visita el <3>sitio cebolla</3>.",
"Hide": "Ocultar",
"You are self-hosting RoboSats":"Estás hosteando RoboSats",
"RoboSats is served from your own node granting you the strongest security and privacy.":"El cliente RoboSats es servido por tu propio nodo, gozas de la mayor seguridad y privacidad.",
"UserGenPage": "User Generation Page and Landing Page",
"Simple and Private LN P2P Exchange": "Intercambio LN P2P Fácil y Privado",