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