Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions i18n/locales/de/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"secondary": "Schnellzugriff auf alle gespeicherten Adressen im JSON-Format"
}
},
"data-export": {
"text": {
"primary": "Wallet-Daten exportieren",
"secondary": "Alle Daten herunterladen: Konten, Kontakte und Einstellungen"
}
},
"data-import": {
"text": {
"primary": "Wallet-Daten importieren",
"secondary": "Daten aus Exportdatei laden"
}
},
"dust": {
"text": {
"primary": "Staub-Transaktionen anzeigen",
Expand Down Expand Up @@ -108,5 +120,21 @@
},
"no-services": "Keine vertrauenswürdigen Dienste"
}
},
"export": {
"title": "Daten exportieren",
"description": "Eine Datei wird mit Ihren Konten, Kontakten und Token-Einstellungen erstellt. Private Schlüssel werden in den Export einbezogen.",
"warning": "Warnung: Die Exportdatei enthält vertrauliche Informationen. Bewahren Sie sie an einem sicheren Ort auf und teilen Sie sie nicht mit Dritten.",
"exporting": "Exportdatei wird erstellt...",
"cancel": "Abbrechen",
"export": "Exportieren"
},
"import": {
"title": "Daten importieren",
"description": "Wählen Sie eine Exportdatei aus, um Konten, Kontakte und Einstellungen zu importieren. Bestehende Daten werden sorgfältig aktualisiert.",
"warning": "Warnung: Der Import fügt neue Daten hinzu und aktualisiert bestehende. Namen bestehender Konten werden nicht geändert.",
"importing": "Daten werden importiert...",
"cancel": "Zurück",
"import": "Datei auswählen"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/en/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"secondary": "Quick access to all the saved addresses in JSON-format"
}
},
"data-export": {
"text": {
"primary": "Export Wallet Data",
"secondary": "Download all data: accounts, contacts and settings"
}
},
"data-import": {
"text": {
"primary": "Import Wallet Data",
"secondary": "Load data from export file"
}
},
"dust": {
"text": {
"primary": "Show dust transactions",
Expand Down Expand Up @@ -108,5 +120,21 @@
},
"no-services": "No trusted services"
}
},
"export": {
"title": "Export Data",
"description": "A file will be created with your accounts, contacts and token settings. Private keys will be included in the export.",
"warning": "Warning: The export file contains confidential information. Keep it in a safe place and do not share it with third parties.",
"exporting": "Creating export file...",
"cancel": "Cancel",
"export": "Export"
},
"import": {
"title": "Import Data",
"description": "Select an export file to import accounts, contacts and settings. Existing data will be carefully updated.",
"warning": "Warning: Import will add new data and update existing ones. Names of existing accounts will not change.",
"importing": "Importing data...",
"cancel": "Back",
"import": "Select File"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/es/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,34 @@
"text": "El servicio será eliminado de tu lista de confianza. Estás seguro?"
},
"no-services": "No hay servicios de confianza."
},
"data-export": {
"text": {
"primary": "Exportar datos de la billetera",
"secondary": "Descargar todos los datos: cuentas, contactos y configuraciones"
}
},
"data-import": {
"text": {
"primary": "Importar datos de la billetera",
"secondary": "Cargar datos desde archivo de exportación"
}
}
},
"export": {
"title": "Exportar datos",
"description": "Se creará un archivo con sus cuentas, contactos y configuraciones de tokens. Las claves privadas se incluirán en la exportación.",
"warning": "Advertencia: El archivo de exportación contiene información confidencial. Manténgalo en un lugar seguro y no lo comparta con terceros.",
"exporting": "Creando archivo de exportación...",
"cancel": "Cancelar",
"export": "Exportar"
},
"import": {
"title": "Importar datos",
"description": "Seleccione un archivo de exportación para importar cuentas, contactos y configuraciones. Los datos existentes se actualizarán cuidadosamente.",
"warning": "Advertencia: La importación agregará nuevos datos y actualizará los existentes. Los nombres de las cuentas existentes no cambiarán.",
"importing": "Importando datos...",
"cancel": "Atrás",
"import": "Seleccionar archivo"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/it/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
"secondary": "Accesso rapido a tutti gli indirizzi salvati in formato JSON"
}
},
"data-export": {
"text": {
"primary": "Esporta dati del portafoglio",
"secondary": "Scarica tutti i dati: account, contatti e impostazioni"
}
},
"data-import": {
"text": {
"primary": "Importa dati del portafoglio",
"secondary": "Carica dati dal file di esportazione"
}
},
"dust": {
"text": {
"primary": "Mostra transazioni di polvere",
Expand Down Expand Up @@ -99,5 +111,21 @@
},
"no-services": "Nessun servizio affidabile"
}
},
"export": {
"title": "Esporta dati",
"description": "Verrà creato un file con i tuoi account, contatti e impostazioni dei token. Le chiavi private saranno incluse nell'esportazione.",
"warning": "Attenzione: Il file di esportazione contiene informazioni riservate. Conservalo in un luogo sicuro e non condividerlo con terze parti.",
"exporting": "Creazione file di esportazione...",
"cancel": "Annulla",
"export": "Esporta"
},
"import": {
"title": "Importa dati",
"description": "Seleziona un file di esportazione per importare account, contatti e impostazioni. I dati esistenti verranno aggiornati con cura.",
"warning": "Attenzione: L'importazione aggiungerà nuovi dati e aggiornerà quelli esistenti. I nomi degli account esistenti non cambieranno.",
"importing": "Importazione dati...",
"cancel": "Indietro",
"import": "Seleziona file"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/ru/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"secondary": "Быстрый доступ к всем сохранённым адресам в JSON-формате"
}
},
"data-export": {
"text": {
"primary": "Экспорт данных кошелька",
"secondary": "Скачать все данные: аккаунты, контакты и настройки"
}
},
"data-import": {
"text": {
"primary": "Импорт данных кошелька",
"secondary": "Загрузить данные из файла экспорта"
}
},
"dust": {
"text": {
"primary": "Показывать пыль",
Expand Down Expand Up @@ -108,5 +120,21 @@
},
"no-services": "Нет доверенных сервисов"
}
},
"export": {
"title": "Экспорт данных",
"description": "Будет создан файл с вашими аккаунтами, контактами и настройками токенов. Приватные ключи будут включены в экспорт.",
"warning": "Внимание: Файл экспорта содержит конфиденциальную информацию. Храните его в безопасном месте и не передавайте третьим лицам.",
"exporting": "Создание файла экспорта...",
"cancel": "Отмена",
"export": "Экспортировать"
},
"import": {
"title": "Импорт данных",
"description": "Выберите файл экспорта для импорта аккаунтов, контактов и настроек. Существующие данные будут аккуратно обновлены.",
"warning": "Внимание: Импорт добавит новые данные и обновит существующие. Названия существующих аккаунтов не изменятся.",
"importing": "Импорт данных...",
"cancel": "Назад",
"import": "Выбрать файл"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/sr-Cyrl/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"secondary": "Брз приступ свим сачуваним адресама у ЈСОН формату"
}
},
"data-export": {
"text": {
"primary": "Извоз података новчаника",
"secondary": "Преузми све податке: налоге, контакте и подешавања"
}
},
"data-import": {
"text": {
"primary": "Увоз података новчаника",
"secondary": "Учитај податке из датотеке извоза"
}
},
"dust": {
"text": {
"primary": "Прикажи врло мале трансакције",
Expand Down Expand Up @@ -108,5 +120,21 @@
},
"no-services": "Нема поузданих услуга"
}
},
"export": {
"title": "Извоз података",
"description": "Биће направљена датотека са твојим налозима, контактима и подешавањима токена. Приватни кључеви ће бити укључени у извоз.",
"warning": "Упозорење: Датотека извоза садржи поверљиве информације. Чувај је на безбедном месту и не дели је са трећим лицима.",
"exporting": "Креирање датотеке извоза...",
"cancel": "Откажи",
"export": "Извези"
},
"import": {
"title": "Увоз података",
"description": "Изабери датотеку извоза за увоз налога, контаката и подешавања. Постојећи подаци ће бити пажљиво ажурирани.",
"warning": "Упозорење: Увоз ће додати нове податке и ажурирати постојеће. Имена постојећих налога се неће мењати.",
"importing": "Увоз података...",
"cancel": "Назад",
"import": "Изабери датотеку"
}
}
28 changes: 28 additions & 0 deletions i18n/locales/sr-Latn/app-settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
"secondary": "Brz pristup svim sačuvanim adresama u JSON formatu"
}
},
"data-export": {
"text": {
"primary": "Izvoz podataka novčanika",
"secondary": "Preuzmi sve podatke: naloge, kontakte i podešavanja"
}
},
"data-import": {
"text": {
"primary": "Uvoz podataka novčanika",
"secondary": "Učitaj podatke iz datoteke izvoza"
}
},
"dust": {
"text": {
"primary": "Prikaži vrlo male transakcije",
Expand Down Expand Up @@ -108,5 +120,21 @@
},
"no-services": "Nema pouzdanih usluga"
}
},
"export": {
"title": "Izvoz podataka",
"description": "Biće napravljena datoteka sa tvojim nalozima, kontaktima i podešavanjima tokena. Privatni ključevi će biti uključeni u izvoz.",
"warning": "Upozorenje: Datoteka izvoza sadrži poverljive informacije. Čuvaj je na bezbednom mestu i ne deli je sa trećim licima.",
"exporting": "Kreiranje datoteke izvoza...",
"cancel": "Otkaži",
"export": "Izvezi"
},
"import": {
"title": "Uvoz podataka",
"description": "Izaberi datoteku izvoza za uvoz naloga, kontakata i podešavanja. Postojeći podaci će biti pažljivo ažurirani.",
"warning": "Upozorenje: Uvoz će dodati nove podatke i ažurirati postojeće. Imena postojećih naloga se neće menjati.",
"importing": "Uvoz podataka...",
"cancel": "Nazad",
"import": "Izaberi datoteku"
}
}
2 changes: 2 additions & 0 deletions src/App/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const manageAccountSigners = (accountID: string) => `/account/${accountID
export const manageAccountSignersDetails = (accountID: string) => `/account/${accountID}/settings/signers/details`
export const manageTrustedServices = () => "/settings/trusted-services"
export const savedAddressesExport = () => "/settings/saved-addresses"
export const dataExport = () => "/settings/data-export"
export const dataImport = () => "/settings/data-import"
export const newAccount = (testnet: boolean) => `/account/new/${testnet ? "testnet" : "mainnet"}`
export const purchaseLumens = (accountID: string) => `/account/${accountID}/purchase`
export const receivePayment = (accountID: string) => `/account/${accountID}/receive`
Expand Down
24 changes: 23 additions & 1 deletion src/AppSettings/components/AppSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { isDefaultProtocolClient, setAsDefaultProtocolClient } from "~Platform/p
import { availableLanguages } from "../../../i18n/index"
import ManageTrustedServicesDialog from "./ManageTrustedServicesDialog"
import SavedAddressesExportDialog from "./SavedAddressesExportDialog"
import DataExportDialog from "./DataExportDialog"
import DataImportDialog from "./DataImportDialog"
import {
BiometricLockSetting,
HideMemoSetting,
Expand All @@ -21,14 +23,24 @@ import {
ShowClaimableBalanceSetting,
ShowDustSetting,
TestnetSetting,
TrustedServicesSetting
TrustedServicesSetting,
DataExportSetting,
DataImportSetting
} from "./Settings"

const SettingsDialogs = React.memo(function SettingsDialogs() {
const router = useRouter()
const showManageTrustedServices = matchesRoute(router.location.pathname, routes.manageTrustedServices())
const showSavedAddressesExport = matchesRoute(router.location.pathname, routes.savedAddressesExport())
const showDataExport = matchesRoute(router.location.pathname, routes.dataExport())
const showDataImport = matchesRoute(router.location.pathname, routes.dataImport())

if (showDataImport) {
return <DataImportDialog />
}
if (showDataExport) {
return <DataExportDialog />
}
if (showSavedAddressesExport) {
return <SavedAddressesExportDialog />
}
Expand Down Expand Up @@ -60,6 +72,14 @@ function AppSettings() {
router.history
])

const navigateToDataExport = React.useCallback(() => router.history.push(routes.dataExport()), [
router.history
])

const navigateToDataImport = React.useCallback(() => router.history.push(routes.dataImport()), [
router.history
])

const switchLanguage = React.useCallback(
(lang: string) => {
i18n.changeLanguage(getEffectiveLanguage(lang, "en"))
Expand Down Expand Up @@ -102,6 +122,8 @@ function AppSettings() {
<ProtocolHandlerSetting isDefaultHandler={isDefaultHandler} onClick={setDefaultClient} />
<TrustedServicesSetting onClick={navigateToTrustedServices} />
<SavedAddressesExportSetting onClick={navigateToSavedAddressesExport} />
<DataExportSetting onClick={navigateToDataExport} />
<DataImportSetting onClick={navigateToDataImport} />
</List>
<SettingsDialogs />
</Carousel>
Expand Down
Loading