feat: downloader update

This commit is contained in:
xkeyC
2025-12-06 15:31:11 +08:00
parent 8ea5373dec
commit fbf40580cf
24 changed files with 281 additions and 69 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;
@@ -425,6 +424,26 @@ class S {
);
}
/// `Clear Completed`
String get downloader_action_clear_completed {
return Intl.message(
'Clear Completed',
name: 'downloader_action_clear_completed',
desc: '',
args: [],
);
}
/// `Remove Record`
String get downloader_action_remove_record {
return Intl.message(
'Remove Record',
name: 'downloader_action_remove_record',
desc: '',
args: [],
);
}
/// `No download tasks`
String get downloader_info_no_download_tasks {
return Intl.message(