feat: support more langs

* add translations for French, Spanish, and Italian
* change the wording for better understanding of this feature:
    - "import" to "restore"
    - "export" to "backup"
* rename functions to reflect these changes
This commit is contained in:
tetuaoro
2024-07-10 11:55:36 +02:00
committed by pheiduck
parent e3ee09b755
commit ce20bb7fcb
6 changed files with 58 additions and 44 deletions

View File

@@ -138,19 +138,12 @@ class API {
});
}
async uploadConfiguration(file) {
async restoreConfiguration(file) {
return this.call({
method: 'put',
path: '/wireguard/upload',
path: '/wireguard/restore',
body: { file },
});
}
async downloadConfiguration() {
return this.call({
method: 'get',
path: '/wireguard/dl',
});
}
}