chore: localize remove addon dialog

This commit is contained in:
Mathias Mogensen 2024-07-12 01:30:25 +02:00
parent 0a1e8461de
commit 8e658f09ec
2 changed files with 9 additions and 3 deletions

View File

@ -262,9 +262,11 @@ class _AITile extends StatelessWidget {
.add(const SettingsBillingEvent.openCustomerPortal());
} else if (subscriptionInfo != null) {
SettingsAlertDialog(
title: 'Remove AI Max',
subtitle:
'Are you sure you want to remove AI Max? You will keep the benefits until the end of the billing period.',
title: LocaleKeys.settings_billingPage_addons_removeDialog_title
.tr(args: [plan.label]).tr(),
subtitle: LocaleKeys
.settings_billingPage_addons_removeDialog_description
.tr(args: [plan.label]).tr(),
confirm: () {
Navigator.of(context).pop();
context

View File

@ -730,6 +730,10 @@
"description": "Unlock unlimited AI offline on your device",
"activeDescription": "Next invoice due on {}",
"canceledDescription": "AI On-device will be available until {}"
},
"removeDialog": {
"title": "Remove {}",
"description": "Are you sure you want to remove {}? You will keep the benefits until the end of the billing period."
}
}
},