Skip to content

Commit 7433e52

Browse files
authored
feat: Backup and Restore for model and radio settings (#134)
1 parent f4bd590 commit 7433e52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+51526
-102
lines changed

i18next-parser.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@ module.exports = {
66
indentation: 2,
77
keepRemoved: false,
88

9+
// Input files to parse
10+
input: [
11+
"src/**/*.{ts,tsx}",
12+
"!src/**/*.spec.{ts,tsx}",
13+
"!src/**/__tests__/**",
14+
],
15+
916
// see below for more details
1017
lexers: {
1118
tsx: ["JsxLexer"],
19+
ts: ["JavascriptLexer"],
1220
},
1321

1422
lineEnding: "auto",

locales/be/backup.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"{{count}} files downloaded_one": "{{count}} files downloaded",
3+
"{{count}} files downloaded_few": "{{count}} files downloaded",
4+
"{{count}} files downloaded_many": "{{count}} files downloaded",
5+
"{{count}} files downloaded_other": "{{count}} files downloaded",
6+
"{{count}} models restored_one": "{{count}} models restored",
7+
"{{count}} models restored_few": "{{count}} models restored",
8+
"{{count}} models restored_many": "{{count}} models restored",
9+
"{{count}} models restored_other": "{{count}} models restored",
10+
"Add more files": "Add more files",
11+
"and labels file found": "and labels file found",
12+
"Auto-rename all": "Auto-rename all",
13+
"Auto-rename applied": "Auto-rename applied",
14+
"Available slots": "Available slots",
15+
"Backup created successfully": "Backup created successfully",
16+
"Backup version (to restore)": "Backup version (to restore)",
17+
"Cancel": "Cancel",
18+
"Change": "Change",
19+
"Clear all": "Clear all",
20+
"Click here to select files, or drag them here to upload.": "Click here to select files, or drag them here to upload.",
21+
"Close": "Close",
22+
"Collision detection": "Collision detection",
23+
"Compare model versions": "Compare model versions",
24+
"Could not use backup file": "Не атрымалася выкарыстаць файл рэзервовай копіі",
25+
"Create backup": "Create backup",
26+
"Creating backup...": "Creating backup...",
27+
"Current version (on SD card)": "Current version (on SD card)",
28+
"Done": "Done",
29+
"Error": "Error",
30+
"Error creating backup": "Error creating backup",
31+
"Error creating temporary backup": "Error creating temporary backup",
32+
"Error preparing restore": "Error preparing restore",
33+
"Error processing file": "Error processing file",
34+
"Error restoring models": "Error restoring models",
35+
"Export format": "Export format",
36+
"File must be smaller than 100MB": "File must be smaller than 100MB",
37+
"Include labels.yml file": "Include labels.yml file",
38+
"Individual .yml files": "Individual .yml files",
39+
"Labels file found, no models": "Labels file found, no models",
40+
"Lines highlighted in red differ between versions": "Lines highlighted in red differ between versions",
41+
"Model already exists in the list": "Model already exists in the list",
42+
"Model name conflicts detected": "Model name conflicts detected",
43+
"Model preview": "Model preview",
44+
"models": "models",
45+
"models available": "models available",
46+
"Models restored successfully": "Models restored successfully",
47+
"Models to restore": "Models to restore",
48+
"more": "more",
49+
"New file name (without .yml)": "New file name (without .yml)",
50+
"No models found": "No models found",
51+
"Not enough available slots for all models": "Not enough available slots for all models",
52+
"Overwrite all": "Overwrite all",
53+
"Please rename or overwrite all conflicting models": "Please rename or overwrite all conflicting models",
54+
"Please select a .etx, .zip or .yml file": "Please select a .etx, .zip or .yml file",
55+
"Please select at least one model": "Please select at least one model",
56+
"Please select SD Card first": "Please select SD Card first",
57+
"Preview": "Preview",
58+
"Ready to restore": "Ready to restore",
59+
"Remove": "Выдаліць",
60+
"Rename model": "Rename model",
61+
"Restore backup": "Restore backup",
62+
"Restore models": "Restore models",
63+
"Restore with renames": "Restore with renames",
64+
"Restoring models...": "Restoring models...",
65+
"SD Card": "SD Card",
66+
"SD Card selected successfully": "SD Card selected successfully",
67+
"Select all": "Select all",
68+
"Select models to backup": "Select models to backup",
69+
"Select SD Card": "Select SD Card",
70+
"Select your SD Card to create a backup": "Select your SD Card to create a backup",
71+
"Select your SD Card to restore models": "Select your SD Card to restore models",
72+
"Selected models": "Selected models",
73+
"Single .etx file (EdgeTX backup)": "Single .etx file (EdgeTX backup)",
74+
"Single .zip file": "Single .zip file",
75+
"Supports .etx, .zip (full backup) or .yml (individual model) files": "Supports .etx, .zip (full backup) or .yml (individual model) files",
76+
"The following models already exist on your SD card. Choose how to handle each conflict:": "The following models already exist on your SD card. Choose how to handle each conflict:",
77+
"The following models were skipped because they already exist": "The following models were skipped because they already exist",
78+
"This feature is not supported by your browser": "This feature is not supported by your browser",
79+
"Verifying...": "Пацвярджэнне...",
80+
"View differences": "View differences",
81+
"When enabled, you'll be asked how to handle models that already exist on your SD card": "When enabled, you'll be asked how to handle models that already exist on your SD card",
82+
"will be overwritten if you choose \"Overwrite all\"": "will be overwritten if you choose \"Overwrite all\"",
83+
"You can add more individual .yml files or load a full .etx/.zip backup": "You can add more individual .yml files or load a full .etx/.zip backup"
84+
}

locales/be/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Dev tools": "Інструменты распрацоўкі",
44
"Donate and support EdgeTX development <2><0></0></2>": "Ахвяруйце і падтрымайце распрацоўку EdgeTX <2><0></0></2>",
55
"Expert mode": "Экспертны рэжым",
6+
"Radio backup": "Рэзервовая копія радыё",
67
"Radio firmware": "Прашыўка радыё",
78
"SD Card content": "Змесціва SD-карты",
89
"settings": "налады"

locales/be/flashing.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@
7474
"Firmware version": "Версія прашыўкі",
7575
"Flag": "Сцяг",
7676
"Flags": "Сцягі",
77+
"Flash": "Прашыўка",
7778
"Flash bootloader": "Flash bootloader",
7879
"Flash firmware": "Flash firmware",
80+
"Flash this radio via Bootloader and UF2": "Flash this radio via Bootloader and UF2",
7981
"Flash via USB": "Прошивка праз USB",
8082
"Flashing bootloader": "Flashing bootloader",
8183
"Flashing done": "Перапрашыўка завершана",

locales/cs/backup.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"{{count}} files downloaded_one": "{{count}} files downloaded",
3+
"{{count}} files downloaded_few": "{{count}} files downloaded",
4+
"{{count}} files downloaded_many": "{{count}} files downloaded",
5+
"{{count}} files downloaded_other": "{{count}} files downloaded",
6+
"{{count}} models restored_one": "{{count}} models restored",
7+
"{{count}} models restored_few": "{{count}} models restored",
8+
"{{count}} models restored_many": "{{count}} models restored",
9+
"{{count}} models restored_other": "{{count}} models restored",
10+
"Add more files": "Add more files",
11+
"and labels file found": "and labels file found",
12+
"Auto-rename all": "Auto-rename all",
13+
"Auto-rename applied": "Auto-rename applied",
14+
"Available slots": "Available slots",
15+
"Backup created successfully": "Backup created successfully",
16+
"Backup version (to restore)": "Backup version (to restore)",
17+
"Cancel": "Cancel",
18+
"Change": "Change",
19+
"Clear all": "Clear all",
20+
"Click here to select files, or drag them here to upload.": "Click here to select files, or drag them here to upload.",
21+
"Close": "Close",
22+
"Collision detection": "Collision detection",
23+
"Compare model versions": "Compare model versions",
24+
"Could not use backup file": "Nepodařilo se použít soubor zálohy",
25+
"Create backup": "Create backup",
26+
"Creating backup...": "Creating backup...",
27+
"Current version (on SD card)": "Current version (on SD card)",
28+
"Done": "Done",
29+
"Error": "Error",
30+
"Error creating backup": "Error creating backup",
31+
"Error creating temporary backup": "Error creating temporary backup",
32+
"Error preparing restore": "Error preparing restore",
33+
"Error processing file": "Error processing file",
34+
"Error restoring models": "Error restoring models",
35+
"Export format": "Export format",
36+
"File must be smaller than 100MB": "File must be smaller than 100MB",
37+
"Include labels.yml file": "Include labels.yml file",
38+
"Individual .yml files": "Individual .yml files",
39+
"Labels file found, no models": "Labels file found, no models",
40+
"Lines highlighted in red differ between versions": "Lines highlighted in red differ between versions",
41+
"Model already exists in the list": "Model already exists in the list",
42+
"Model name conflicts detected": "Model name conflicts detected",
43+
"Model preview": "Model preview",
44+
"models": "models",
45+
"models available": "models available",
46+
"Models restored successfully": "Models restored successfully",
47+
"Models to restore": "Models to restore",
48+
"more": "more",
49+
"New file name (without .yml)": "New file name (without .yml)",
50+
"No models found": "No models found",
51+
"Not enough available slots for all models": "Not enough available slots for all models",
52+
"Overwrite all": "Overwrite all",
53+
"Please rename or overwrite all conflicting models": "Please rename or overwrite all conflicting models",
54+
"Please select a .etx, .zip or .yml file": "Please select a .etx, .zip or .yml file",
55+
"Please select at least one model": "Please select at least one model",
56+
"Please select SD Card first": "Please select SD Card first",
57+
"Preview": "Preview",
58+
"Ready to restore": "Ready to restore",
59+
"Remove": "Odstranit",
60+
"Rename model": "Rename model",
61+
"Restore backup": "Restore backup",
62+
"Restore models": "Restore models",
63+
"Restore with renames": "Restore with renames",
64+
"Restoring models...": "Restoring models...",
65+
"SD Card": "SD Card",
66+
"SD Card selected successfully": "SD Card selected successfully",
67+
"Select all": "Select all",
68+
"Select models to backup": "Select models to backup",
69+
"Select SD Card": "Select SD Card",
70+
"Select your SD Card to create a backup": "Select your SD Card to create a backup",
71+
"Select your SD Card to restore models": "Select your SD Card to restore models",
72+
"Selected models": "Selected models",
73+
"Single .etx file (EdgeTX backup)": "Single .etx file (EdgeTX backup)",
74+
"Single .zip file": "Single .zip file",
75+
"Supports .etx, .zip (full backup) or .yml (individual model) files": "Supports .etx, .zip (full backup) or .yml (individual model) files",
76+
"The following models already exist on your SD card. Choose how to handle each conflict:": "The following models already exist on your SD card. Choose how to handle each conflict:",
77+
"The following models were skipped because they already exist": "The following models were skipped because they already exist",
78+
"This feature is not supported by your browser": "This feature is not supported by your browser",
79+
"Verifying...": "Ověřuji...",
80+
"View differences": "View differences",
81+
"When enabled, you'll be asked how to handle models that already exist on your SD card": "When enabled, you'll be asked how to handle models that already exist on your SD card",
82+
"will be overwritten if you choose \"Overwrite all\"": "will be overwritten if you choose \"Overwrite all\"",
83+
"You can add more individual .yml files or load a full .etx/.zip backup": "You can add more individual .yml files or load a full .etx/.zip backup"
84+
}

locales/cs/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Dev tools": "Vývojářské nástroje",
44
"Donate and support EdgeTX development <2><0></0></2>": "Darovat a podpořit tak EdgeTX vývoj <2><0></0></2>",
55
"Expert mode": "Expert mód",
6+
"Radio backup": "Záloha rádia",
67
"Radio firmware": "Firmware rádia",
78
"SD Card content": "SD karta",
89
"settings": "Nastavení"

locales/cs/flashing.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@
7474
"Firmware version": "Verze firmwaru",
7575
"Flag": "Flag",
7676
"Flags": "Flags",
77+
"Flash": "Zapsat",
7778
"Flash bootloader": "Flash bootloader",
7879
"Flash firmware": "Flash firmware",
80+
"Flash this radio via Bootloader and UF2": "Flash this radio via Bootloader and UF2",
7981
"Flash via USB": "Zapsat přes USB",
8082
"Flashing bootloader": "Flashing bootloader",
8183
"Flashing done": "Zapisování dokončeno",

locales/da/backup.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"{{count}} files downloaded_one": "{{count}} files downloaded",
3+
"{{count}} files downloaded_other": "{{count}} files downloaded",
4+
"{{count}} models restored_one": "{{count}} models restored",
5+
"{{count}} models restored_other": "{{count}} models restored",
6+
"Add more files": "Add more files",
7+
"and labels file found": "and labels file found",
8+
"Auto-rename all": "Auto-rename all",
9+
"Auto-rename applied": "Auto-rename applied",
10+
"Available slots": "Available slots",
11+
"Backup created successfully": "Backup created successfully",
12+
"Backup version (to restore)": "Backup version (to restore)",
13+
"Cancel": "Cancel",
14+
"Change": "Change",
15+
"Clear all": "Clear all",
16+
"Click here to select files, or drag them here to upload.": "Click here to select files, or drag them here to upload.",
17+
"Close": "Close",
18+
"Collision detection": "Collision detection",
19+
"Compare model versions": "Compare model versions",
20+
"Could not use backup file": "Kunne ikke bruge backup-fil",
21+
"Create backup": "Create backup",
22+
"Creating backup...": "Creating backup...",
23+
"Current version (on SD card)": "Current version (on SD card)",
24+
"Done": "Done",
25+
"Error": "Error",
26+
"Error creating backup": "Error creating backup",
27+
"Error creating temporary backup": "Error creating temporary backup",
28+
"Error preparing restore": "Error preparing restore",
29+
"Error processing file": "Error processing file",
30+
"Error restoring models": "Error restoring models",
31+
"Export format": "Export format",
32+
"File must be smaller than 100MB": "File must be smaller than 100MB",
33+
"Include labels.yml file": "Include labels.yml file",
34+
"Individual .yml files": "Individual .yml files",
35+
"Labels file found, no models": "Labels file found, no models",
36+
"Lines highlighted in red differ between versions": "Lines highlighted in red differ between versions",
37+
"Model already exists in the list": "Model already exists in the list",
38+
"Model name conflicts detected": "Model name conflicts detected",
39+
"Model preview": "Model preview",
40+
"models": "models",
41+
"models available": "models available",
42+
"Models restored successfully": "Models restored successfully",
43+
"Models to restore": "Models to restore",
44+
"more": "more",
45+
"New file name (without .yml)": "New file name (without .yml)",
46+
"No models found": "No models found",
47+
"Not enough available slots for all models": "Not enough available slots for all models",
48+
"Overwrite all": "Overwrite all",
49+
"Please rename or overwrite all conflicting models": "Please rename or overwrite all conflicting models",
50+
"Please select a .etx, .zip or .yml file": "Please select a .etx, .zip or .yml file",
51+
"Please select at least one model": "Please select at least one model",
52+
"Please select SD Card first": "Please select SD Card first",
53+
"Preview": "Preview",
54+
"Ready to restore": "Ready to restore",
55+
"Remove": "Fjern",
56+
"Rename model": "Rename model",
57+
"Restore backup": "Restore backup",
58+
"Restore models": "Restore models",
59+
"Restore with renames": "Restore with renames",
60+
"Restoring models...": "Restoring models...",
61+
"SD Card": "SD Card",
62+
"SD Card selected successfully": "SD Card selected successfully",
63+
"Select all": "Select all",
64+
"Select models to backup": "Select models to backup",
65+
"Select SD Card": "Select SD Card",
66+
"Select your SD Card to create a backup": "Select your SD Card to create a backup",
67+
"Select your SD Card to restore models": "Select your SD Card to restore models",
68+
"Selected models": "Selected models",
69+
"Single .etx file (EdgeTX backup)": "Single .etx file (EdgeTX backup)",
70+
"Single .zip file": "Single .zip file",
71+
"Supports .etx, .zip (full backup) or .yml (individual model) files": "Supports .etx, .zip (full backup) or .yml (individual model) files",
72+
"The following models already exist on your SD card. Choose how to handle each conflict:": "The following models already exist on your SD card. Choose how to handle each conflict:",
73+
"The following models were skipped because they already exist": "The following models were skipped because they already exist",
74+
"This feature is not supported by your browser": "This feature is not supported by your browser",
75+
"Verifying...": "Bekræfter...",
76+
"View differences": "View differences",
77+
"When enabled, you'll be asked how to handle models that already exist on your SD card": "When enabled, you'll be asked how to handle models that already exist on your SD card",
78+
"will be overwritten if you choose \"Overwrite all\"": "will be overwritten if you choose \"Overwrite all\"",
79+
"You can add more individual .yml files or load a full .etx/.zip backup": "You can add more individual .yml files or load a full .etx/.zip backup"
80+
}

locales/da/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"Dev tools": "Udviklings værktøj",
44
"Donate and support EdgeTX development <2><0></0></2>": "Donation og støtte til EdgeTx udvikling <2><0></0></2>",
55
"Expert mode": "Ekspert tilstand",
6+
"Radio backup": "Radio backup",
67
"Radio firmware": "Radio firmware",
78
"SD Card content": "SD indhold",
89
"settings": "indstillinger"

locales/da/flashing.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@
7474
"Firmware version": "Firmware version",
7575
"Flag": "valg",
7676
"Flags": "Tilvalg",
77+
"Flash": "Brænding",
7778
"Flash bootloader": "Flash bootloader",
7879
"Flash firmware": "Flash firmware",
80+
"Flash this radio via Bootloader and UF2": "Flash this radio via Bootloader and UF2",
7981
"Flash via USB": "Brænding via USB",
8082
"Flashing bootloader": "Flashing bootloader",
8183
"Flashing done": "Brænding klar",

0 commit comments

Comments
 (0)