From 22b10df91d162ec8b461957d7719e3407d1f6648 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Sun, 15 Oct 2023 21:18:40 +0200 Subject: [PATCH] Code Review --- frontend/src/basic/BookPage/index.tsx | 2 +- frontend/src/basic/OrderPage/index.tsx | 2 + .../src/components/Charts/MapChart/index.tsx | 18 ++++---- frontend/src/components/Dialogs/F2fMap.tsx | 42 +++++++++++-------- .../src/components/MakerForm/MakerForm.tsx | 34 ++++++--------- frontend/src/components/Map/index.tsx | 16 ++++--- .../src/components/OrderDetails/index.tsx | 9 +--- frontend/static/locales/ca.json | 5 ++- frontend/static/locales/cs.json | 5 ++- frontend/static/locales/de.json | 5 ++- frontend/static/locales/en.json | 5 ++- frontend/static/locales/es.json | 5 ++- frontend/static/locales/eu.json | 5 ++- frontend/static/locales/fr.json | 5 ++- frontend/static/locales/it.json | 5 ++- frontend/static/locales/ja.json | 5 ++- frontend/static/locales/pl.json | 5 ++- frontend/static/locales/pt.json | 5 ++- frontend/static/locales/ru.json | 5 ++- frontend/static/locales/sv.json | 5 ++- frontend/static/locales/sw.json | 5 ++- frontend/static/locales/th.json | 5 ++- frontend/static/locales/zh-SI.json | 5 ++- frontend/static/locales/zh-TR.json | 5 ++- 24 files changed, 127 insertions(+), 81 deletions(-) diff --git a/frontend/src/basic/BookPage/index.tsx b/frontend/src/basic/BookPage/index.tsx index 5e9c04c1..d0e266ad 100644 --- a/frontend/src/basic/BookPage/index.tsx +++ b/frontend/src/basic/BookPage/index.tsx @@ -132,7 +132,7 @@ const BookPage = (): JSX.Element => { diff --git a/frontend/src/basic/OrderPage/index.tsx b/frontend/src/basic/OrderPage/index.tsx index ae5f5b25..c4c0be80 100644 --- a/frontend/src/basic/OrderPage/index.tsx +++ b/frontend/src/basic/OrderPage/index.tsx @@ -57,6 +57,8 @@ const OrderPage = (): JSX.Element => { public_duration: order.public_duration, escrow_duration: order.escrow_duration, bond_size: order.bond_size, + latitude: order.latitude, + longitude: order.longitude, }; apiClient .post(baseUrl, '/api/make/', body, { tokenSHA256: robot.tokenSHA256 }) diff --git a/frontend/src/components/Charts/MapChart/index.tsx b/frontend/src/components/Charts/MapChart/index.tsx index 7337f9e9..491a522e 100644 --- a/frontend/src/components/Charts/MapChart/index.tsx +++ b/frontend/src/components/Charts/MapChart/index.tsx @@ -2,7 +2,7 @@ import React, { useContext, useState } from 'react'; import { CircularProgress, Grid, Paper, Switch, Tooltip } from '@mui/material'; import Map from '../../Map'; import { AppContext, UseAppStoreType } from '../../../contexts/AppContext'; -import { WifiTetheringError } from '@mui/icons-material'; +import { PhotoSizeSelectActual } from '@mui/icons-material'; import { useTranslation } from 'react-i18next'; interface MapChartProps { @@ -22,7 +22,7 @@ const MapChart: React.FC = ({ }) => { const { t } = useTranslation(); const { book } = useContext(AppContext); - const [lowQuality, setLowQuality] = useState(true); + const [useTiles, setUseTiles] = useState(false); const height = maxHeight < 20 ? 20 : maxHeight; const width = maxWidth < 20 ? 20 : maxWidth > 72.8 ? 72.8 : maxWidth; @@ -54,11 +54,7 @@ const MapChart: React.FC = ({ item style={{ height: 50, justifyContent: 'center', display: 'flex', paddingTop: 10 }} > - +
= ({ > setLowQuality((value) => !value)} + checked={useTiles} + onChange={() => setUseTiles((value) => !value)} /> - +
- +
)} diff --git a/frontend/src/components/Dialogs/F2fMap.tsx b/frontend/src/components/Dialogs/F2fMap.tsx index 7a0fe8f4..50386ae1 100644 --- a/frontend/src/components/Dialogs/F2fMap.tsx +++ b/frontend/src/components/Dialogs/F2fMap.tsx @@ -1,4 +1,4 @@ -import React, { useContext, useEffect, useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Button, @@ -12,15 +12,15 @@ import { } from '@mui/material'; import { PhotoSizeSelectActual } from '@mui/icons-material'; import Map from '../Map'; -import { LatLng } from 'leaflet'; +import { randomNumberBetween } from '@mui/x-data-grid/utils/utils'; interface Props { open: boolean; orderType: number; latitude?: number; longitude?: number; - onClose?: (position?: LatLng) => void; - save?: boolean; + onClose?: (position?: [number, number]) => void; + interactive?: boolean; zoom?: number; } @@ -30,20 +30,23 @@ const F2fMapDialog = ({ onClose = () => {}, latitude, longitude, - save, + interactive, zoom, }: Props): JSX.Element => { const { t } = useTranslation(); - const [position, setPosition] = useState(); + const [position, setPosition] = useState<[number, number]>(); const [useTiles, setUseTiles] = useState(false); const onSave = () => { - onClose(position); + if (position && position[0] && position[1]) { + const randomAggregator = randomNumberBetween(Math.random(), -0.005, 0.005); + onClose([position[0] + randomAggregator(), position[1] + randomAggregator()]); + } }; useEffect(() => { if (open && latitude && longitude) { - setPosition(new LatLng(latitude, longitude)); + setPosition([latitude, longitude]); } else { setPosition(undefined); } @@ -59,13 +62,9 @@ const F2fMapDialog = ({ > - {t(save ? 'Choose a location' : 'Map')} + {t(interactive ? 'Choose a location' : 'Map')} - +
- + + + ); diff --git a/frontend/src/components/MakerForm/MakerForm.tsx b/frontend/src/components/MakerForm/MakerForm.tsx index c8f77d8e..02a15d88 100644 --- a/frontend/src/components/MakerForm/MakerForm.tsx +++ b/frontend/src/components/MakerForm/MakerForm.tsx @@ -41,7 +41,6 @@ import { amountToString, computeSats, pn } from '../../utils'; import { SelfImprovement, Lock, HourglassTop, DeleteSweep, Edit, Map } from '@mui/icons-material'; import { LoadingButton } from '@mui/lab'; import { AppContext, type UseAppStoreType } from '../../contexts/AppContext'; -import { LatLng } from 'leaflet'; import { fiatMethods } from '../PaymentMethods'; interface MakerFormProps { @@ -463,13 +462,13 @@ const MakerForm = ({ setMaker(defaultMaker); }; - const handleAddLocation = (pos: LatLng) => { - if (pos.lat && pos.lng) { + const handleAddLocation = (pos: [number, number]) => { + if (pos && pos.length === 2) { setMaker((maker) => { return { ...maker, - latitude: parseFloat(pos.lat.toPrecision(6)), - longitude: parseFloat(pos.lng.toPrecision(6)), + latitude: parseFloat(pos[0].toPrecision(6)), + longitude: parseFloat(pos[1].toPrecision(6)), }; }); if (!maker.paymentMethods.find((method) => method.icon === 'cash')) { @@ -536,12 +535,12 @@ const MakerForm = ({ onClickGenerateRobot={onClickGenerateRobot} /> { + onClose={(pos?: [number, number]) => { if (pos) handleAddLocation(pos); setOpenWorldmap(false); }} @@ -826,21 +825,12 @@ const MakerForm = ({ - - - -
- -
-
-
-
+ + +
{!maker.advancedOptions && pricingMethods ? ( diff --git a/frontend/src/components/Map/index.tsx b/frontend/src/components/Map/index.tsx index 5ca39e4a..cf828631 100644 --- a/frontend/src/components/Map/index.tsx +++ b/frontend/src/components/Map/index.tsx @@ -4,19 +4,20 @@ import { MapContainer, GeoJSON, useMapEvents, Circle, TileLayer, Tooltip } from import { useTheme, LinearProgress } from '@mui/material'; import { UseAppStoreType, AppContext } from '../../contexts/AppContext'; import { GeoJsonObject } from 'geojson'; -import { LatLng, LeafletMouseEvent } from 'leaflet'; +import { LeafletMouseEvent } from 'leaflet'; import { PublicOrder } from '../../models'; import OrderTooltip from '../Charts/helpers/OrderTooltip'; interface Props { orderType?: number; useTiles: boolean; - position?: LatLng | undefined; - setPosition?: (position: LatLng) => void; + position?: [number, number] | undefined; + setPosition?: (position: [number, number]) => void; orders?: PublicOrder[]; onOrderClicked?: (id: number) => void; zoom?: number; - center: [number, number]; + center?: [number, number]; + interactive?: boolean; } const Map = ({ @@ -27,7 +28,8 @@ const Map = ({ setPosition = () => {}, useTiles = false, onOrderClicked = () => null, - center, + center = [0, 0], + interactive = false, }: Props): JSX.Element => { const theme = useTheme(); const { baseUrl } = useContext(AppContext); @@ -44,7 +46,9 @@ const Map = ({ const LocationMarker = () => { useMapEvents({ click(event: LeafletMouseEvent) { - setPosition(event.latlng); + if (interactive) { + setPosition([event.latlng.lat, event.latlng.lng]); + } }, }); diff --git a/frontend/src/components/OrderDetails/index.tsx b/frontend/src/components/OrderDetails/index.tsx index 0a2e4530..228d0da7 100644 --- a/frontend/src/components/OrderDetails/index.tsx +++ b/frontend/src/components/OrderDetails/index.tsx @@ -40,7 +40,6 @@ import { type Order, type Info } from '../../models'; import { statusBadgeColor, pn, amountToString, computeSats } from '../../utils'; import TakeButton from './TakeButton'; import { F2fMapDialog } from '../Dialogs'; -import { LatLng } from 'leaflet'; interface OrderDetailsProps { order: Order; @@ -369,13 +368,9 @@ const OrderDetails = ({
- +
diff --git a/frontend/static/locales/ca.json b/frontend/static/locales/ca.json index 58c33016..99027f9b 100644 --- a/frontend/static/locales/ca.json +++ b/frontend/static/locales/ca.json @@ -156,7 +156,7 @@ "yes": "si", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activar mode lent (utilitza'l quan la connexió sigui lenta)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Tornar", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Tancar", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Longitud passos Dipòsit/Factura", "Exact": "Exacte", "Exact Amount": "Quantitat Exacte", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Mètode(s) de Pagament Fiat", "Fidelity Bond Size": "Grandària de la fiança", "In or Out of Lightning?": "Introduir o Treure de Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verifica la teva privacitat", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...esperant", + "Activate slow mode (use it when the connection is slow)": "Activar mode lent (utilitza'l quan la connexió sigui lenta)", "Peer": "Ell", "You": "Tu", "connected": "connectat", diff --git a/frontend/static/locales/cs.json b/frontend/static/locales/cs.json index 932ff735..3b010b31 100644 --- a/frontend/static/locales/cs.json +++ b/frontend/static/locales/cs.json @@ -156,7 +156,7 @@ "yes": "ano", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Jít zpět", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Zavřít", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Možnosti fiat plateb", "Fidelity Bond Size": "Velikost kauce", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Ověř svou ochranu soukromí", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Protistrana", "You": "Ty", "connected": "připojen", diff --git a/frontend/static/locales/de.json b/frontend/static/locales/de.json index e1d45b71..994b3e99 100644 --- a/frontend/static/locales/de.json +++ b/frontend/static/locales/de.json @@ -156,7 +156,7 @@ "yes": "yes", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Zurück", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Schließen", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Fiat Zahlungsmethode(n)", "Fidelity Bond Size": "Höhe der Kaution", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Überprüfe deine Privatsphäre", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Partner", "You": "Du", "connected": "verbunden", diff --git a/frontend/static/locales/en.json b/frontend/static/locales/en.json index 2d7a840f..38d5f196 100644 --- a/frontend/static/locales/en.json +++ b/frontend/static/locales/en.json @@ -156,7 +156,7 @@ "yes": "yes", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Go back", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Close", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Fiat Payment Method(s)", "Fidelity Bond Size": "Fidelity Bond Size", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verify your privacy", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Peer", "You": "You", "connected": "connected", diff --git a/frontend/static/locales/es.json b/frontend/static/locales/es.json index 544f5f25..d2b95435 100644 --- a/frontend/static/locales/es.json +++ b/frontend/static/locales/es.json @@ -156,7 +156,7 @@ "yes": "si", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activar modo lento (Úsalo cuando tu conexión sea inestable)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Volver", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Cerrar", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "Para proteger tu privacidad, tu selección será ligeramente modificada aleatoriamente sin perder precisión.", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exacto", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Método(s) de pago en fiat", "Fidelity Bond Size": "Tamaño de la fianza", "In or Out of Lightning?": "¿Hacia o desde Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verifica tu privacidad", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activar modo lento (Úsalo cuando tu conexión sea inestable)", "Peer": "Él", "You": "Tú", "connected": "conectado", diff --git a/frontend/static/locales/eu.json b/frontend/static/locales/eu.json index f43df869..8304b221 100644 --- a/frontend/static/locales/eu.json +++ b/frontend/static/locales/eu.json @@ -156,7 +156,7 @@ "yes": "bai", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Joan atzera", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Itxi", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Fiat Ordainketa Modua(k)", "Fidelity Bond Size": "Fidantzaren tamaina", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Zure pribatasuna egiaztatu", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Bera", "You": "Zu", "connected": "konektatuta", diff --git a/frontend/static/locales/fr.json b/frontend/static/locales/fr.json index a1a8cf59..7a6b4d8f 100644 --- a/frontend/static/locales/fr.json +++ b/frontend/static/locales/fr.json @@ -156,7 +156,7 @@ "yes": "oui", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activer le mode lent (à utiliser lorsque la connexion est lente)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Retourner", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Fermer", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Longueur de l'étape de dépôt fiduciaire/facture", "Exact": "Exact", "Exact Amount": "Montant exact", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Mode(s) de paiement Fiat", "Fidelity Bond Size": "Taille de la garantie de fidélité", "In or Out of Lightning?": "Entrer ou sortir du Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Vérifier votre confidentialité", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...attente", + "Activate slow mode (use it when the connection is slow)": "Activer le mode lent (à utiliser lorsque la connexion est lente)", "Peer": "Correspondant", "You": "Vous", "connected": "connecté", diff --git a/frontend/static/locales/it.json b/frontend/static/locales/it.json index 57bdc045..d3f2d950 100644 --- a/frontend/static/locales/it.json +++ b/frontend/static/locales/it.json @@ -156,7 +156,7 @@ "yes": "si", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Attiva slow mode (da utilizzare quando la connessione è lenta)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Indietro", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Chiudi", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Deposito/durata dello step della fattura", "Exact": "Esatto", "Exact Amount": "Importo esatto", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Metodo(i) di pagamento fiat", "Fidelity Bond Size": "Ammontare della cauzione", "In or Out of Lightning?": "Dentro o fuori da Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verifica la tua privacy", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...in attesa", + "Activate slow mode (use it when the connection is slow)": "Attiva slow mode (da utilizzare quando la connessione è lenta)", "Peer": "Pari", "You": "Tu", "connected": "connesso", diff --git a/frontend/static/locales/ja.json b/frontend/static/locales/ja.json index 47a719fb..dc0f501b 100644 --- a/frontend/static/locales/ja.json +++ b/frontend/static/locales/ja.json @@ -156,7 +156,7 @@ "yes": "はい", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "スローモードを有効にする(接続が遅い場合に使用)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "戻る", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "閉じる", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub)。 ", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "エスクロー/インボイスのステップ期間", "Exact": "正確", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "支払い方法", "Fidelity Bond Size": "信用担保金のサイズ", "In or Out of Lightning?": "ライトニングに入れる?出す?", @@ -502,6 +504,7 @@ "Verify your privacy": "プライバシーを確認する", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...待機中", + "Activate slow mode (use it when the connection is slow)": "スローモードを有効にする(接続が遅い場合に使用)", "Peer": "相手", "You": "あなた", "connected": "接続されました", diff --git a/frontend/static/locales/pl.json b/frontend/static/locales/pl.json index 04abb676..b8832847 100644 --- a/frontend/static/locales/pl.json +++ b/frontend/static/locales/pl.json @@ -156,7 +156,7 @@ "yes": "yes", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Wróć", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Blisko", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Fiat Metoda/Metody płatności", "Fidelity Bond Size": "Rozmiar obligacji wierności", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verify your privacy", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Par", "You": "Ty", "connected": "połączony", diff --git a/frontend/static/locales/pt.json b/frontend/static/locales/pt.json index 12bc1ff2..09881ed7 100644 --- a/frontend/static/locales/pt.json +++ b/frontend/static/locales/pt.json @@ -156,7 +156,7 @@ "yes": "yes", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Voltar", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Fechar", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Forma(s) de Pagamento Fiat", "Fidelity Bond Size": "Tamanho do título de fidelidade", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verifique sua privacidade", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Par", "You": "Você", "connected": "conectado", diff --git a/frontend/static/locales/ru.json b/frontend/static/locales/ru.json index 2c1d77a7..ff6c8b17 100644 --- a/frontend/static/locales/ru.json +++ b/frontend/static/locales/ru.json @@ -156,7 +156,7 @@ "yes": "да", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Вернуться", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Закрыть", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "Для защиты Вашей конфиденциальности выбранное местоположение будет слегка изменено случайным образом без потери точности", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Способ(ы) оплаты", "Fidelity Bond Size": "Размер залога", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Проверьте свою конфиденциальность", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Партнёр", "You": "Вы", "connected": "подключен", diff --git a/frontend/static/locales/sv.json b/frontend/static/locales/sv.json index f2ad611f..8dba57c4 100644 --- a/frontend/static/locales/sv.json +++ b/frontend/static/locales/sv.json @@ -156,7 +156,7 @@ "yes": "yes", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Gå tillbaka", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Stäng", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Betalningmetod(er) med fiat", "Fidelity Bond Size": "Storlek på fidelity bond", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Verifiera din integritet", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "Peer", "You": "Du", "connected": "ansluten", diff --git a/frontend/static/locales/sw.json b/frontend/static/locales/sw.json index 25f8cbe2..f6f216bf 100644 --- a/frontend/static/locales/sw.json +++ b/frontend/static/locales/sw.json @@ -156,7 +156,7 @@ "yes": "ndio", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Washa hali ya polepole (itumie wakati muunganisho ni polepole)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "Rudi nyuma", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "Funga", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Hatua ya muda wa Amana/bili", "Exact": "Sahihi", "Exact Amount": "Kiasi Sahihi", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "Njia za Malipo ya Fiat", "Fidelity Bond Size": "Ukubwa wa Dhamana ya Uaminifu", "In or Out of Lightning?": "Ndani au Nje ya Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "Thibitisha faragha yako", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...inayosubiri", + "Activate slow mode (use it when the connection is slow)": "Washa hali ya polepole (itumie wakati muunganisho ni polepole)", "Peer": "Mwenza", "You": "Wewe", "connected": "imeunganishwa", diff --git a/frontend/static/locales/th.json b/frontend/static/locales/th.json index d12de516..52312527 100644 --- a/frontend/static/locales/th.json +++ b/frontend/static/locales/th.json @@ -156,7 +156,7 @@ "yes": "ใช่", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "กลับ", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "ปิด", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub)", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "Escrow/invoice step length", "Exact": "Exact", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "วิธีการชำระเงินเฟียต", "Fidelity Bond Size": "วงเงินหลักประกันความเสียหาย (bond)", "In or Out of Lightning?": "In or Out of Lightning?", @@ -502,6 +504,7 @@ "Verify your privacy": "ตรวจสอบความเป็นส่วนตัวของคุณ", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...waiting", + "Activate slow mode (use it when the connection is slow)": "Activate slow mode (use it when the connection is slow)", "Peer": "คู่ค้า", "You": "คุณ", "connected": "เชื่อมต่อแล้ว", diff --git a/frontend/static/locales/zh-SI.json b/frontend/static/locales/zh-SI.json index acbe0423..e2faddde 100644 --- a/frontend/static/locales/zh-SI.json +++ b/frontend/static/locales/zh-SI.json @@ -156,7 +156,7 @@ "yes": "是", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "开启慢速模式(在连接缓慢时使用)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "返回", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "关闭", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "托管/发票步长", "Exact": "确切", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "法币付款方法", "Fidelity Bond Size": "保证金大小", "In or Out of Lightning?": "换入还是换出闪电?", @@ -502,6 +504,7 @@ "Verify your privacy": "验证你的隐私", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...正在等待", + "Activate slow mode (use it when the connection is slow)": "开启慢速模式(在连接缓慢时使用)", "Peer": "对等方", "You": "你", "connected": "在线", diff --git a/frontend/static/locales/zh-TR.json b/frontend/static/locales/zh-TR.json index 57469ac9..5c4086f7 100644 --- a/frontend/static/locales/zh-TR.json +++ b/frontend/static/locales/zh-TR.json @@ -156,7 +156,7 @@ "yes": "是", "#16": "Phrases in components/Charts/DepthChart/index.tsx", "#17": "Phrases in components/Charts/MapChart/index.tsx", - "Activate slow mode (use it when the connection is slow)": "開啟慢速模式(在連接緩慢時使用)", + "Show tiles": "Show tiles", "#18": "Phrases in components/Charts/helpers/OrderTooltip/index.tsx", "#19": "Phrases in components/Dialogs/AuditPGP.tsx", "Go back": "返回", @@ -207,6 +207,7 @@ "#23": "Phrases in components/Dialogs/F2fMap.tsx", "Close": "關閉", "Save": "Save", + "To protect your privacy, your selection will be slightly randomized without losing accuracy": "To protect your privacy, your selection will be slightly randomized without losing accuracy", "#24": "Phrases in components/Dialogs/Info.tsx", "(GitHub).": "(GitHub).", "(Telegram)": "(Telegram)", @@ -327,6 +328,7 @@ "Escrow/invoice step length": "託管/發票步長", "Exact": "確切", "Exact Amount": "Exact Amount", + "Face-to-face": "Face-to-face", "Fiat Payment Method(s)": "法幣付款方法", "Fidelity Bond Size": "保證金大小", "In or Out of Lightning?": "換入還是換出閃電?", @@ -502,6 +504,7 @@ "Verify your privacy": "驗證你的隱私", "#52": "Phrases in components/TradeBox/EncryptedChat/ChatHeader/index.tsx", "...waiting": "...正在等待", + "Activate slow mode (use it when the connection is slow)": "開啟慢速模式(在連接緩慢時使用)", "Peer": "對等方", "You": "你", "connected": "在線",