feat: lang

This commit is contained in:
efrilm
2025-08-20 13:52:49 +07:00
parent f07d07b3a8
commit 5a83bc4049
53 changed files with 3386 additions and 721 deletions
@@ -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()),
),
],