feat. & fix.

- support backup & restore
- fix when client.run empty return
This commit is contained in:
Junyuan Feng
2022-05-22 13:02:54 +08:00
parent 228f228d44
commit 0fdc1b784b
10 changed files with 386 additions and 127 deletions

View File

@@ -1230,6 +1230,66 @@ class S {
args: [],
);
}
/// `The exported data is simply encrypted. \nPlease keep it safe.\nRestoring will not overwrite existing data (except setting).`
String get backupTip {
return Intl.message(
'The exported data is simply encrypted. \nPlease keep it safe.\nRestoring will not overwrite existing data (except setting).',
name: 'backupTip',
desc: '',
args: [],
);
}
/// `Backup`
String get backup {
return Intl.message(
'Backup',
name: 'backup',
desc: '',
args: [],
);
}
/// `Are you sure to restore from {date} ?`
String restoreSureWithDate(Object date) {
return Intl.message(
'Are you sure to restore from $date ?',
name: 'restoreSureWithDate',
desc: '',
args: [date],
);
}
/// `Backup version is not match.`
String get backupVersionNotMatch {
return Intl.message(
'Backup version is not match.',
name: 'backupVersionNotMatch',
desc: '',
args: [],
);
}
/// `Invalid JSON`
String get invalidJson {
return Intl.message(
'Invalid JSON',
name: 'invalidJson',
desc: '',
args: [],
);
}
/// `Restore success. Restart app to apply.`
String get restoreSuccess {
return Intl.message(
'Restore success. Restart app to apply.',
name: 'restoreSuccess',
desc: '',
args: [],
);
}
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {