1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:hooks_riverpod/hooks_riverpod.dart' ;
3
- import 'package:i18next/i18next.dart' ;
4
3
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart' ;
4
+ import 'package:sidekick/src/modules/common/utils/helpers.dart' ;
5
5
6
6
import '../../../components/atoms/typography.dart' ;
7
7
import '../../../modules/common/dto/release.dto.dart' ;
@@ -56,22 +56,21 @@ class FvmReleaseActions extends StatelessWidget {
56
56
PopupMenuItem (
57
57
value: FvmReleaseActionOptions .global,
58
58
child: renderMenuButton (
59
- label: I18Next . of ( context). t ('modules:fvm.components.setAsGlobal' ),
59
+ label: context. i18n ('modules:fvm.components.setAsGlobal' ),
60
60
icon: MdiIcons .earth,
61
61
),
62
62
),
63
63
PopupMenuItem (
64
64
value: FvmReleaseActionOptions .detail,
65
65
child: renderMenuButton (
66
- label:
67
- I18Next .of (context).t ('modules:pubPackages.components.details' ),
66
+ label: context.i18n ('modules:pubPackages.components.details' ),
68
67
icon: MdiIcons .information,
69
68
),
70
69
),
71
70
PopupMenuItem (
72
71
value: FvmReleaseActionOptions .remove,
73
72
child: renderMenuButton (
74
- label: I18Next . of ( context). t ('modules:projects.components.remove' ),
73
+ label: context. i18n ('modules:projects.components.remove' ),
75
74
icon: MdiIcons .delete,
76
75
),
77
76
),
@@ -84,7 +83,7 @@ class FvmReleaseActions extends StatelessWidget {
84
83
PopupMenuItem (
85
84
value: FvmReleaseActionOptions .upgrade,
86
85
child: renderMenuButton (
87
- label: I18Next . of ( context). t ('modules:fvm.components.upgrade' ),
86
+ label: context. i18n ('modules:fvm.components.upgrade' ),
88
87
icon: MdiIcons .update,
89
88
),
90
89
),
0 commit comments