feat: downloader update

This commit is contained in:
xkeyC
2025-12-05 17:12:40 +08:00
parent 4315e36cbe
commit 289691896d
23 changed files with 1001 additions and 118 deletions

View File

@@ -28,10 +28,9 @@ class S {
static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
static Future<S> load(Locale locale) {
final name =
(locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final name = (locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;
@@ -715,6 +714,46 @@ class S {
);
}
/// `Speed limit settings saved. Will apply on next downloader start.`
String get downloader_info_speed_limit_saved_restart_required {
return Intl.message(
'Speed limit settings saved. Will apply on next downloader start.',
name: 'downloader_info_speed_limit_saved_restart_required',
desc: '',
args: [],
);
}
/// `Restart Now`
String get downloader_action_restart_now {
return Intl.message(
'Restart Now',
name: 'downloader_action_restart_now',
desc: '',
args: [],
);
}
/// `Apply Later`
String get downloader_action_restart_later {
return Intl.message(
'Apply Later',
name: 'downloader_action_restart_later',
desc: '',
args: [],
);
}
/// `Speed limit settings saved. Restart the download manager now to apply new settings?`
String get downloader_info_restart_manager_to_apply {
return Intl.message(
'Speed limit settings saved. Restart the download manager now to apply new settings?',
name: 'downloader_info_restart_manager_to_apply',
desc: '',
args: [],
);
}
/// `One-Click Diagnosis -> {v0}`
String doctor_title_one_click_diagnosis(Object v0) {
return Intl.message(