Skip to content

Commit d47577d

Browse files
committed
chore: update translations
1 parent 1e145d2 commit d47577d

File tree

9 files changed

+84
-116
lines changed

9 files changed

+84
-116
lines changed

frontend/appflowy_flutter/lib/features/share_tab/presentation/share_tab.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class _ShareTabState extends State<ShareTab> {
8686
final isFullAccess = accessLevel == ShareAccessLevel.fullAccess;
8787
String tooltip = '';
8888
if (!widget.isInProPlan) {
89-
tooltip = 'Please upgrade to Pro plan to invite guests';
89+
tooltip = LocaleKeys.shareTab_upgradeToProToInviteGuests.tr();
9090
} else if (!isFullAccess) {
9191
tooltip = LocaleKeys.shareTab_onlyFullAccessCanInvite.tr();
9292
}
@@ -232,7 +232,7 @@ class _ShareTabState extends State<ShareTab> {
232232
message = LocaleKeys.shareTab_emailAlreadyInList.tr();
233233
break;
234234
case ErrorCode.FreePlanGuestLimitExceeded:
235-
message = LocaleKeys.shareTab_upgradeToProToInviteGuests.tr();
235+
message = LocaleKeys.shareTab_upgradeToProToInviteMoreGuests.tr();
236236
break;
237237
case ErrorCode.PaidPlanGuestLimitExceeded:
238238
message = LocaleKeys.shareTab_maxGuestsReached.tr();

frontend/appflowy_flutter/lib/features/share_tab/presentation/widgets/people_with_access_section.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import 'package:appflowy/features/share_tab/data/models/models.dart';
22
import 'package:appflowy/features/share_tab/presentation/widgets/access_level_list_widget.dart';
33
import 'package:appflowy/features/share_tab/presentation/widgets/shared_user_widget.dart';
4+
import 'package:appflowy/generated/locale_keys.g.dart';
45
import 'package:appflowy_ui/appflowy_ui.dart';
56
import 'package:collection/collection.dart';
7+
import 'package:easy_localization/easy_localization.dart';
68
import 'package:flutter/material.dart';
79

810
class PeopleWithAccessSectionCallbacks {
@@ -53,7 +55,7 @@ class PeopleWithAccessSection extends StatelessWidget {
5355
);
5456

5557
return AFMenuSection(
56-
title: 'People with access',
58+
title: LocaleKeys.shareTab_peopleWithAccess.tr(),
5759
constraints: BoxConstraints(
5860
maxHeight: 240,
5961
),

frontend/appflowy_flutter/lib/features/shared_section/presentation/shared_section.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ class SharedSection extends StatelessWidget {
9999
// show a dialog to confirm the action
100100
await showConfirmDialog(
101101
context: context,
102-
title: 'Remove your own access',
102+
title: LocaleKeys.shareTab_removeYourOwnAccess.tr(),
103103
titleStyle: theme.textStyle.body.standard(
104104
color: theme.textColorScheme.primary,
105105
),
106106
description: '',
107107
style: ConfirmPopupStyle.cancelAndOk,
108-
confirmLabel: 'Remove',
108+
confirmLabel: LocaleKeys.button_remove.tr(),
109109
onConfirm: (_) {
110110
context.read<SharedSectionBloc>().add(
111111
SharedSectionEvent.leaveSharedPage(

frontend/appflowy_flutter/lib/features/shared_section/presentation/widgets/shared_section_empty.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 'package:appflowy/generated/flowy_svgs.g.dart';
2+
import 'package:appflowy/generated/locale_keys.g.dart';
23
import 'package:appflowy_ui/appflowy_ui.dart';
4+
import 'package:easy_localization/easy_localization.dart';
35
import 'package:flowy_infra_ui/widget/spacing.dart';
46
import 'package:flutter/material.dart';
57

@@ -19,15 +21,15 @@ class SharedSectionEmpty extends StatelessWidget {
1921
),
2022
const VSpace(12),
2123
Text(
22-
'Nothing shared with you',
24+
LocaleKeys.shareTab_nothingSharedWithYou.tr(),
2325
style: theme.textStyle.heading3.enhanced(
2426
color: theme.textColorScheme.secondary,
2527
),
2628
textAlign: TextAlign.center,
2729
),
2830
const VSpace(4),
2931
Text(
30-
'Pages shared with you will show here',
32+
LocaleKeys.shareTab_pagesSharedWithYouWillShowHere.tr(),
3133
style: theme.textStyle.heading4.standard(
3234
color: theme.textColorScheme.tertiary,
3335
),

frontend/appflowy_flutter/lib/startup/tasks/debug_task.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:appflowy/startup/startup.dart';
2-
import 'package:appflowy_backend/dispatch/dispatch.dart';
32
import 'package:flutter/foundation.dart';
43
import 'package:flutter/services.dart';
54
import 'package:flutter_bloc/flutter_bloc.dart';
@@ -42,7 +41,7 @@ class DebugTask extends LaunchTask {
4241
);
4342

4443
// enable rust request tracing
45-
Dispatch.enableTracing = true;
44+
// Dispatch.enableTracing = true;
4645
}
4746
}
4847
}

frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ class _SingleInnerViewItemState extends State<SingleInnerViewItem> {
653653

654654
final accessLevel = context.read<PageAccessLevelBloc>().state.accessLevel;
655655
if (accessLevel == ShareAccessLevel.readOnly) {
656-
return icon;
656+
return SizedBox(width: 16.0, child: icon);
657657
}
658658

659659
final Widget child = AppFlowyPopover(

frontend/resources/translations/en-US.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,7 +3435,7 @@
34353435
"onlyFullAccessCanInvite": "Only user with full access can invite others",
34363436
"invitationSent": "Invitation sent",
34373437
"emailAlreadyInList": "The email is already in the list",
3438-
"upgradeToProToInviteGuests": "Please upgrade to a Pro plan to invite more guests",
3438+
"upgradeToProToInviteMoreGuests": "Please upgrade to a Pro plan to invite more guests",
34393439
"maxGuestsReached": "You have reached the maximum number of guests",
34403440
"removedGuestSuccessfully": "Removed guest successfully",
34413441
"updatedAccessLevelSuccessfully": "Updated access level successfully",
@@ -3459,7 +3459,11 @@
34593459
"member": "Some invitees are outside your workspace. To invite them as guests, please contact your workspace owner to upgrade to the Pro plan.",
34603460
"guest": "Some invitees are outside your workspace. To invite them as guests, please contact your workspace owner to upgrade to the Pro plan."
34613461
}
3462-
}
3462+
},
3463+
"upgradeToProToInviteGuests": "Please upgrade to Pro plan to invite guests",
3464+
"removeYourOwnAccess": "Remove your own access",
3465+
"nothingSharedWithYou": "Nothing shared with you",
3466+
"pagesSharedWithYouWillShowHere": "Pages shared with you will show here"
34633467
},
34643468
"shareSection": {
34653469
"shared": "Shared with me"

0 commit comments

Comments
 (0)