From 63a267ca6d38b9fd5c648d93e2ee964f04b1bf07 Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Fri, 19 May 2023 12:42:06 +0100 Subject: [PATCH] fix: Text in `Show menu` tooltip does not get translated (#2563) Co-authored-by: gitstart --- frontend/appflowy_flutter/assets/translations/en.json | 3 ++- .../lib/plugins/document/presentation/more/more_button.dart | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/assets/translations/en.json b/frontend/appflowy_flutter/assets/translations/en.json index bdd74cc1d6..2340f962ab 100644 --- a/frontend/appflowy_flutter/assets/translations/en.json +++ b/frontend/appflowy_flutter/assets/translations/en.json @@ -45,7 +45,8 @@ "medium": "medium", "large": "large", "fontSize": "Font Size", - "import": "Import" + "import": "Import", + "moreOptions": "More options" }, "disclosureAction": { "rename": "Rename", diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart index 072b5bf195..181ac2b225 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/more/more_button.dart @@ -1,5 +1,7 @@ +import 'package:appflowy/generated/locale_keys.g.dart'; import 'package:appflowy/plugins/document/presentation/more/cubit/document_appearance_cubit.dart'; import 'package:appflowy/plugins/document/presentation/more/font_size_switcher.dart'; +import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra/image.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; @@ -14,6 +16,7 @@ class DocumentMoreButton extends StatelessWidget { return PopupMenuButton( color: Theme.of(context).colorScheme.surfaceVariant, offset: const Offset(0, 30), + tooltip: LocaleKeys.moreAction_moreOptions.tr(), itemBuilder: (context) { return [ PopupMenuItem(