Language Change

This commit is contained in:
Nilanjan Chakrabarti
2025-07-10 13:19:31 +05:30
parent 9b439338a9
commit d4de89a91f
22 changed files with 334 additions and 227 deletions

View File

@@ -36,7 +36,7 @@ class _BlockCardScreen extends State<BlockCardScreen> {
// Call your backend logic here
final snackBar = SnackBar(
content: const Text('Card has been blocked'),
content: Text(AppLocalizations.of(context).cardBlocked),
action: SnackBarAction(
label: 'X',
onPressed: () {
@@ -62,8 +62,8 @@ class _BlockCardScreen extends State<BlockCardScreen> {
Navigator.pop(context);
},
),
title: const Text(
'Block Card',
title: Text(
AppLocalizations.of(context).blockCard,
style: TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
),
centerTitle: false,
@@ -109,7 +109,7 @@ class _BlockCardScreen extends State<BlockCardScreen> {
textInputAction: TextInputAction.next,
validator: (value) => value != null && value.length == 11
? null
: 'Enter valid card number',
: AppLocalizations.of(context).enterValidCardNumber,
),
const SizedBox(height: 24),
Row(
@@ -135,7 +135,7 @@ class _BlockCardScreen extends State<BlockCardScreen> {
obscureText: true,
validator: (value) => value != null && value.length == 3
? null
: 'CVV must be 3 digits',
: AppLocalizations.of(context).cvv3Digits,
),
),
const SizedBox(width: 16),
@@ -160,7 +160,7 @@ class _BlockCardScreen extends State<BlockCardScreen> {
),
validator: (value) => value != null && value.isNotEmpty
? null
: 'Select expiry date',
: AppLocalizations.of(context).selectExpiryDate,
),
),
],