🌐 Localized gift subscription

This commit is contained in:
2025-10-03 21:11:11 +08:00
parent fbc7812a16
commit 122a796f8c
2 changed files with 13 additions and 8 deletions

View File

@@ -1087,5 +1087,10 @@
"installUpdate": "Install update",
"openReleasePage": "Open release page",
"postCompose": "Compose Post",
"postPublish": "Publish Post"
"postPublish": "Publish Post",
"purchaseGift": "Purchase Gift",
"selectRecipient": "Select Recipient",
"changeRecipient": "Change Recipient",
"addMessage": "Add Message",
"skipRecipient": "Skip Recipient"
}

View File

@@ -91,7 +91,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
@override
Widget build(BuildContext context) {
return SheetScaffold(
titleText: 'Purchase Gift',
titleText: 'purchaseGift'.tr(),
child: Column(
children: [
Expanded(
@@ -102,7 +102,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
children: [
// Recipient Selection Section
Text(
'Select Recipient',
'selectRecipient'.tr(),
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
@@ -214,8 +214,8 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
icon: const Icon(Icons.person_search),
label: Text(
selectedRecipient != null
? 'Change Recipient'
: 'Select Recipient',
? 'changeRecipient'.tr()
: 'selectRecipient'.tr(),
),
style: OutlinedButton.styleFrom(
minimumSize: const Size(double.infinity, 48),
@@ -226,7 +226,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
// Message Section
Text(
'Add Message',
'addMessage'.tr(),
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
@@ -278,7 +278,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
? null
: messageController.text.trim(),
}),
child: Text('Skip Recipient'),
child: Text('skipRecipient'.tr()),
),
),
const Gap(8),
@@ -292,7 +292,7 @@ class _PurchaseGiftSheetState extends State<PurchaseGiftSheet> {
? null
: messageController.text.trim(),
}),
child: Text('Purchase Gift'),
child: Text('purchaseGift'.tr()),
),
),
],