Skip to content

Commit 83bcb30

Browse files
committed
refactor(shared): remove unused constants and update localization
- Remove constants file and pagination constants - Update ContentStatusL10n extension to use AppLocalizationsX - Remove constants export from shared.dart
1 parent 8ef91c1 commit 83bcb30

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

lib/shared/constants/constants.dart

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/shared/constants/pagination_constants.dart

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/shared/extensions/content_status_l10n.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:ht_shared/ht_shared.dart';
66
extension ContentStatusL10n on ContentStatus {
77
/// Returns the localized string for the status.
88
String l10n(BuildContext context) {
9-
final l10n = context.l10n;
9+
final l10n = AppLocalizationsX(context).l10n;
1010
switch (this) {
1111
case ContentStatus.active:
1212
return l10n.contentStatusActive;

lib/shared/shared.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
/// the application to promote consistency and maintainability.
55
library;
66

7-
export 'constants/constants.dart';
87
export 'extensions/extensions.dart';

0 commit comments

Comments
 (0)