All services that return TurboResponse.fail() or similar error constructs use S.current instead of gStrings, maintaining the same behavior but removing the gStrings dependency.
Services use gStrings for error messages:
return TurboResponse.fail(title: gStrings.errorTitle);
Services use S.current directly:
return TurboResponse.fail(title: S.current.errorTitle);
S from lib/generated/l10n.dartgStrings usages remain in any service fileS from generated pathflutter analyze passeslib/auth/services/auth_service.dart (11 usages)lib/auth/services/email_service.dart (10 usages)lib/auth/services/user_service.dart (2 usages)lib/cleaning/services/cleaning_tasks_service.dart (2 usages)lib/feedback/services/dialog_service.dart (4 usages)lib/feedbacks/services/feedback_storage_service.dart (4 usages)lib/firebase/cloud_functions/apis/cloud_functions_api.dart (14 usages)lib/households/services/household_invites_service.dart (8 usages)lib/households/services/household_service.dart (2 usages)lib/shopping/services/image_service.dart (4 usages)lib/shopping/services/shopping_list_item_dtos_service.dart (2 usages)lib/auth/mixins/firebase_auth_exception_handler.dart (32 usages)flutter analyzeThe firebase_auth_exception_handler.dart has the highest usage count (32) and handles Firebase authentication errors. All error messages should be migrated to S.current.
Reacties