Add Hungarian English language switcher

This commit is contained in:
zsolt
2026-08-13 13:43:57 +02:00
parent 1b0734cf7b
commit aea92b0eed
8 changed files with 262 additions and 35 deletions
+6 -3
View File
@@ -8,6 +8,7 @@ class AccountsPage extends StatefulWidget {
required this.people,
required this.jarvisSettings,
required this.serverClientId,
required this.languageCode,
required this.onChanged,
required this.onSyncedEventsChanged,
});
@@ -17,6 +18,7 @@ class AccountsPage extends StatefulWidget {
final List<Person> people;
final JarvisSettings jarvisSettings;
final String serverClientId;
final String languageCode;
final ValueChanged<List<GoogleCalendarConnection>> onChanged;
final ValueChanged<List<CalendarEvent>> onSyncedEventsChanged;
@@ -354,6 +356,7 @@ class _AccountsPageState extends State<AccountsPage> with WidgetsBindingObserver
@override
Widget build(BuildContext context) {
final text = AppText.of(widget.languageCode);
final current = connection;
final hasConnection = current != null && current.accountEmail.isNotEmpty;
final cachedUncategorized = widget.cachedEvents
@@ -361,13 +364,13 @@ class _AccountsPageState extends State<AccountsPage> with WidgetsBindingObserver
.length;
return PageFrame(
eyebrow: 'JARVIS Google Calendar szinkron',
title: 'Google napt\u00e1rak',
eyebrow: text.googleSyncEyebrow,
title: text.googleCalendars,
action: FilledButton.icon(
onPressed: loadingCalendars ? null : _startGoogleConnection,
icon: const Icon(Icons.open_in_browser),
label: Text(
hasConnection ? 'Google \u00f6sszek\u00f6t\u00e9s \u00fajranyit\u00e1sa' : 'Google \u00f6sszek\u00f6t\u00e9s',
hasConnection ? text.googleReconnect : text.googleConnect,
),
),
child: ListView(