fix: cloud sync (#769)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-06-04 00:11:31 +08:00
committed by GitHub
parent 9547d92ac5
commit 0c1ada0067
70 changed files with 2348 additions and 1906 deletions

View File

@@ -73,7 +73,7 @@ import 'l10n_zh.dart';
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
final String localeName;
@@ -96,11 +96,11 @@ abstract class AppLocalizations {
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
@@ -116,7 +116,7 @@ abstract class AppLocalizations {
Locale('tr'),
Locale('uk'),
Locale('zh'),
Locale('zh', 'TW')
Locale('zh', 'TW'),
];
/// No description provided for @aboutThanks.
@@ -370,7 +370,9 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'{runningCount} running, {stoppedCount} container stopped.'**
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount);
Object runningCount,
Object stoppedCount,
);
/// No description provided for @dockerStatusRunningFmt.
///
@@ -1488,19 +1490,19 @@ class _AppLocalizationsDelegate
@override
bool isSupported(Locale locale) => <String>[
'de',
'en',
'es',
'fr',
'id',
'ja',
'nl',
'pt',
'ru',
'tr',
'uk',
'zh'
].contains(locale.languageCode);
'de',
'en',
'es',
'fr',
'id',
'ja',
'nl',
'pt',
'ru',
'tr',
'uk',
'zh',
].contains(locale.languageCode);
@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
@@ -1548,8 +1550,9 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
}
throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.',
);
}