fix: syntax error when generating translation files (#5718)

This commit is contained in:
Lucas.Xu 2024-07-11 11:56:00 +08:00 committed by GitHub
parent e500c89978
commit 80afcf44c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,3 @@
import 'package:flutter/material.dart';
import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/util/theme_extension.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/theme_extension.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart'; import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
class SettingsPlanComparisonDialog extends StatefulWidget { class SettingsPlanComparisonDialog extends StatefulWidget {
@ -173,9 +172,10 @@ class _SettingsPlanComparisonDialogState
description: LocaleKeys description: LocaleKeys
.settings_comparePlanDialog_freePlan_description .settings_comparePlanDialog_freePlan_description
.tr(), .tr(),
// TODO(Mathias): the price should be dynamic based on the country and currency
price: LocaleKeys price: LocaleKeys
.settings_comparePlanDialog_freePlan_price .settings_comparePlanDialog_freePlan_price
.tr(), .tr(args: ['\$0']),
priceInfo: LocaleKeys priceInfo: LocaleKeys
.settings_comparePlanDialog_freePlan_priceInfo .settings_comparePlanDialog_freePlan_priceInfo
.tr(), .tr(),
@ -231,9 +231,10 @@ class _SettingsPlanComparisonDialogState
description: LocaleKeys description: LocaleKeys
.settings_comparePlanDialog_proPlan_description .settings_comparePlanDialog_proPlan_description
.tr(), .tr(),
// TODO(Mathias): the price should be dynamic based on the country and currency
price: LocaleKeys price: LocaleKeys
.settings_comparePlanDialog_proPlan_price .settings_comparePlanDialog_proPlan_price
.tr(), .tr(args: ['\$10 ']),
priceInfo: LocaleKeys priceInfo: LocaleKeys
.settings_comparePlanDialog_proPlan_priceInfo .settings_comparePlanDialog_proPlan_priceInfo
.tr(), .tr(),

View File

@ -1,5 +1,3 @@
import 'package:flutter/material.dart';
import 'package:appflowy/generated/flowy_svgs.g.dart'; import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/util/int64_extension.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/theme_extension.dart';
import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart';
import 'package:flowy_infra_ui/widget/error_page.dart'; import 'package:flowy_infra_ui/widget/error_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
class SettingsPlanView extends StatelessWidget { class SettingsPlanView extends StatelessWidget {
@ -710,7 +709,7 @@ class _PlanProgressIndicator extends StatelessWidget {
// children: [ // children: [
// FlowyText.semibold( // FlowyText.semibold(
// LocaleKeys.settings_planPage_planUsage_aiCredit_price // LocaleKeys.settings_planPage_planUsage_aiCredit_price
// .tr(), // .tr(args: ['5\$]),
// fontSize: 24, // fontSize: 24,
// ), // ),
// FlowyText.medium( // FlowyText.medium(

View File

@ -659,7 +659,7 @@
"storageUnlimited": "Unbegrenzter Speicherplatz mit deinem Pro-Plan", "storageUnlimited": "Unbegrenzter Speicherplatz mit deinem Pro-Plan",
"aiCredit": { "aiCredit": {
"title": "@:appName KI-Guthaben hinzufügen", "title": "@:appName KI-Guthaben hinzufügen",
"price": "5 $", "price": "{}",
"priceDescription": "für 1.000 Credits", "priceDescription": "für 1.000 Credits",
"purchase": "Kauf von KI", "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:", "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": { "proPlan": {
"title": "Professionell", "title": "Professionell",
"description": "Ein Ort für kleine Gruppen zum Planen und Organisieren.", "description": "Ein Ort für kleine Gruppen zum Planen und Organisieren.",
"price": "$10 /Monat", "price": "{} /Monat",
"priceInfo": "jährlich abgerechnet" "priceInfo": "jährlich abgerechnet"
}, },
"planLabels": { "planLabels": {

View File

@ -649,7 +649,7 @@
"storageUnlimited": "Unlimited storage with your Pro Plan", "storageUnlimited": "Unlimited storage with your Pro Plan",
"aiCredit": { "aiCredit": {
"title": "Add @:appName AI Credit", "title": "Add @:appName AI Credit",
"price": "5$", "price": "{}",
"priceDescription": "for 1,000 credits", "priceDescription": "for 1,000 credits",
"purchase": "Purchase AI", "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:", "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": { "freePlan": {
"title": "Free", "title": "Free",
"description": "For organizing every corner of your work & life.", "description": "For organizing every corner of your work & life.",
"price": "$0", "price": "{}",
"priceInfo": "free forever" "priceInfo": "free forever"
}, },
"proPlan": { "proPlan": {
"title": "Professional", "title": "Professional",
"description": "A place for small groups to plan & get organized.", "description": "A place for small groups to plan & get organized.",
"price": "$10 /month", "price": "{}/month",
"priceInfo": "billed annually" "priceInfo": "billed annually"
}, },
"planLabels": { "planLabels": {