Skip to content

Commit af2aa48

Browse files
committed
feat(authentication): use localized strings for demo hints
This change updates the authentication UI pages to use the newly added localization keys (`demoEmailHint` and `demoCodeHint`) instead of hardcoded strings. This ensures that the demo hints are properly translated for both English and Arabic, improving the internationalization of the application.
1 parent 9995880 commit af2aa48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/authentication/view/email_code_verification_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class EmailCodeVerificationPage extends StatelessWidget {
8282
children: [
8383
const SizedBox(height: AppSpacing.md),
8484
Text(
85-
'For demo, use code: 123456',
85+
l10n.demoCodeHint('123456'),
8686
style: textTheme.bodyMedium?.copyWith(
8787
color: colorScheme.secondary,
8888
fontWeight: FontWeight.bold,

lib/authentication/view/request_code_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class _RequestCodeView extends StatelessWidget {
139139
return Padding(
140140
padding: const EdgeInsets.only(top: AppSpacing.lg),
141141
child: Text(
142-
'For demo, use email: [email protected]',
142+
l10n.demoEmailHint('[email protected]'),
143143
style: textTheme.bodyMedium?.copyWith(
144144
color: colorScheme.secondary,
145145
fontWeight: FontWeight.bold,

0 commit comments

Comments
 (0)