fix: Text in Show menu tooltip does not get translated (#2563)

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
This commit is contained in:
GitStart 2023-05-19 12:42:06 +01:00 committed by GitHub
parent 1f1a97b21b
commit 63a267ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -45,7 +45,8 @@
"medium": "medium", "medium": "medium",
"large": "large", "large": "large",
"fontSize": "Font Size", "fontSize": "Font Size",
"import": "Import" "import": "Import",
"moreOptions": "More options"
}, },
"disclosureAction": { "disclosureAction": {
"rename": "Rename", "rename": "Rename",

View File

@ -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/cubit/document_appearance_cubit.dart';
import 'package:appflowy/plugins/document/presentation/more/font_size_switcher.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:flowy_infra/image.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
@ -14,6 +16,7 @@ class DocumentMoreButton extends StatelessWidget {
return PopupMenuButton<int>( return PopupMenuButton<int>(
color: Theme.of(context).colorScheme.surfaceVariant, color: Theme.of(context).colorScheme.surfaceVariant,
offset: const Offset(0, 30), offset: const Offset(0, 30),
tooltip: LocaleKeys.moreAction_moreOptions.tr(),
itemBuilder: (context) { itemBuilder: (context) {
return [ return [
PopupMenuItem( PopupMenuItem(