diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_comparison_dialog.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_comparison_dialog.dart index 33c4f3ab0f..7d8d3433b5 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_comparison_dialog.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_comparison_dialog.dart @@ -1,5 +1,3 @@ -import 'package:flutter/material.dart'; - import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/util/theme_extension.dart'; @@ -12,6 +10,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra/theme_extension.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flowy_infra_ui/widget/flowy_tooltip.dart'; +import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; class SettingsPlanComparisonDialog extends StatefulWidget { @@ -173,9 +172,10 @@ class _SettingsPlanComparisonDialogState description: LocaleKeys .settings_comparePlanDialog_freePlan_description .tr(), + // TODO(Mathias): the price should be dynamic based on the country and currency price: LocaleKeys .settings_comparePlanDialog_freePlan_price - .tr(), + .tr(args: ['\$0']), priceInfo: LocaleKeys .settings_comparePlanDialog_freePlan_priceInfo .tr(), @@ -231,9 +231,10 @@ class _SettingsPlanComparisonDialogState description: LocaleKeys .settings_comparePlanDialog_proPlan_description .tr(), + // TODO(Mathias): the price should be dynamic based on the country and currency price: LocaleKeys .settings_comparePlanDialog_proPlan_price - .tr(), + .tr(args: ['\$10 ']), priceInfo: LocaleKeys .settings_comparePlanDialog_proPlan_priceInfo .tr(), diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart index edbb698f92..b876cf70ec 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/settings_plan_view.dart @@ -1,5 +1,3 @@ -import 'package:flutter/material.dart'; - import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/util/int64_extension.dart'; @@ -19,6 +17,7 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra/theme_extension.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flowy_infra_ui/widget/error_page.dart'; +import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; class SettingsPlanView extends StatelessWidget { @@ -710,7 +709,7 @@ class _PlanProgressIndicator extends StatelessWidget { // children: [ // FlowyText.semibold( // LocaleKeys.settings_planPage_planUsage_aiCredit_price -// .tr(), +// .tr(args: ['5\$]), // fontSize: 24, // ), // FlowyText.medium( diff --git a/frontend/resources/translations/de-DE.json b/frontend/resources/translations/de-DE.json index cfed21a8d9..d74b4da468 100644 --- a/frontend/resources/translations/de-DE.json +++ b/frontend/resources/translations/de-DE.json @@ -659,7 +659,7 @@ "storageUnlimited": "Unbegrenzter Speicherplatz mit deinem Pro-Plan", "aiCredit": { "title": "@:appName KI-Guthaben hinzufügen", - "price": "5 $", + "price": "{}", "priceDescription": "für 1.000 Credits", "purchase": "Kauf von KI", "info": "Füge 1.000 KI-Credits pro Arbeitsbereich hinzu und integriere anpassbare KI nahtlos in deinen Arbeitsablauf für intelligentere, schnellere Ergebnisse mit bis zu:", @@ -737,7 +737,7 @@ "proPlan": { "title": "Professionell", "description": "Ein Ort für kleine Gruppen zum Planen und Organisieren.", - "price": "$10 /Monat", + "price": "{} /Monat", "priceInfo": "jährlich abgerechnet" }, "planLabels": { diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json index d52b7dbb0c..6398ae630a 100644 --- a/frontend/resources/translations/en.json +++ b/frontend/resources/translations/en.json @@ -649,7 +649,7 @@ "storageUnlimited": "Unlimited storage with your Pro Plan", "aiCredit": { "title": "Add @:appName AI Credit", - "price": "5$", + "price": "{}", "priceDescription": "for 1,000 credits", "purchase": "Purchase AI", "info": "Add 1,000 Ai credits per workspace and seamlessly integrate customizable AI into your workflow for smarter, faster results with up to:", @@ -721,13 +721,13 @@ "freePlan": { "title": "Free", "description": "For organizing every corner of your work & life.", - "price": "$0", + "price": "{}", "priceInfo": "free forever" }, "proPlan": { "title": "Professional", "description": "A place for small groups to plan & get organized.", - "price": "$10 /month", + "price": "{}/month", "priceInfo": "billed annually" }, "planLabels": {