feat: Ensure locale synchronization by reloading from persistent storage after locale change
This commit is contained in:
@@ -57,6 +57,9 @@ class LocaleBloc extends Bloc<LocaleEvent, LocaleState> {
|
|||||||
supportedLocales: state.supportedLocales,
|
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.
|
/// Handles the [LoadLocale] event by retrieving it via the use case and updating settings.
|
||||||
|
|||||||
Reference in New Issue
Block a user