feat: lang
This commit is contained in:
@@ -34,7 +34,7 @@ class ProfileAccountInfo extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.all(16),
|
||||
child: Text(
|
||||
'Account Information',
|
||||
context.lang.account_information,
|
||||
style: AppStyle.xl.copyWith(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -45,7 +45,7 @@ class ProfileAccountInfo extends StatelessWidget {
|
||||
|
||||
ProfileTile(
|
||||
icon: LineIcons.envelope,
|
||||
title: 'Email',
|
||||
title: context.lang.email,
|
||||
subtitle: user.email,
|
||||
showArrow: false,
|
||||
),
|
||||
@@ -54,7 +54,7 @@ class ProfileAccountInfo extends StatelessWidget {
|
||||
|
||||
ProfileTile(
|
||||
icon: LineIcons.calendarAlt,
|
||||
title: 'Member Since',
|
||||
title: context.lang.member_since,
|
||||
subtitle: user.createdAt.toDate,
|
||||
showArrow: false,
|
||||
),
|
||||
@@ -62,15 +62,15 @@ class ProfileAccountInfo extends StatelessWidget {
|
||||
|
||||
ProfileTile(
|
||||
icon: LineIcons.userEdit,
|
||||
title: 'Ubah Profil',
|
||||
subtitle: 'Ubah profil kamu',
|
||||
title: context.lang.edit_profile,
|
||||
subtitle: context.lang.edit_profile_desc,
|
||||
onTap: () => context.router.push(ProfileEditRoute(user: user)),
|
||||
),
|
||||
ProfileDivider(),
|
||||
ProfileTile(
|
||||
icon: LineIcons.lock,
|
||||
title: 'Change Password',
|
||||
subtitle: 'Change your password',
|
||||
title: context.lang.change_password,
|
||||
subtitle: context.lang.change_password_desc,
|
||||
onTap: () => context.router.push(ProfileChangePasswordRoute()),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user