feat: Ensure locale synchronization by reloading from persistent storage after locale change

This commit is contained in:
Achintha Isuru
2026-03-01 12:43:07 -05:00
parent 315e8f9598
commit 89f078054d

View File

@@ -57,6 +57,9 @@ class LocaleBloc extends Bloc<LocaleEvent, LocaleState> {
supportedLocales: state.supportedLocales,
),
);
// 4. Reload from persistent storage to ensure synchronization
add(const LoadLocale());
}
/// Handles the [LoadLocale] event by retrieving it via the use case and updating settings.