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.',
);
}

View File

@@ -149,7 +149,9 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount aktiv, $stoppedCount container gestoppt.';
}

View File

@@ -148,7 +148,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount running, $stoppedCount container stopped.';
}

View File

@@ -149,7 +149,9 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount en ejecución, $stoppedCount detenidos';
}

View File

@@ -149,7 +149,9 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount en cours d\'exécution, $stoppedCount conteneur arrêté.';
}

View File

@@ -148,7 +148,9 @@ class AppLocalizationsId extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount running, $stoppedCount container stopped.';
}

View File

@@ -142,7 +142,9 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount個が実行中$stoppedCount個が停止中';
}

View File

@@ -148,7 +148,9 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount actief, $stoppedCount container gestopt.';
}

View File

@@ -148,7 +148,9 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount em execução, $stoppedCount parados';
}

View File

@@ -148,7 +148,9 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount запущено, $stoppedCount остановлено';
}

View File

@@ -147,7 +147,9 @@ class AppLocalizationsTr extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount çalışıyor, $stoppedCount konteyner durdurulmuş.';
}

View File

@@ -149,7 +149,9 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount запущено, $stoppedCount контейнерів зупинено.';
}

View File

@@ -141,7 +141,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount 个正在运行, $stoppedCount 个已停止';
}
@@ -858,7 +860,9 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
@override
String dockerStatusRunningAndStoppedFmt(
Object runningCount, Object stoppedCount) {
Object runningCount,
Object stoppedCount,
) {
return '$runningCount 個正在運行, $stoppedCount 個已停止';
}