Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: checkbox power toggle missing configuration (#3941)
Mathias Mogensen4a1a143a666f
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dartindex 1811d869ce..24971117d5 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart@@ -1,10 +1,13 @@+import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/actions/mobile_block_action_buttons.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/image/custom_image_block_component.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/plugins.dart';import 'package:appflowy/plugins/document/presentation/editor_style.dart';import 'package:appflowy_editor/appflowy_editor.dart';+import 'package:easy_localization/easy_localization.dart' hide TextDirection;import 'package:flowy_infra/theme_extension.dart';import 'package:flutter/material.dart';+import 'package:flutter/services.dart';Map<String, BlockComponentBuilder> getEditorBuilderMap({required BuildContext context,@@ -40,29 +43,35 @@ Map<String, BlockComponentBuilder> getEditorBuilderMap({),TodoListBlockKeys.type: TodoListBlockComponentBuilder(configuration: configuration.copyWith(- placeholderText: (_) => 'To-do',+ placeholderText: (_) => LocaleKeys.blockPlaceholders_todoList.tr(),),+ toggleChildrenTriggers: [+ LogicalKeyboardKey.shift,+ LogicalKeyboardKey.shiftLeft,+ LogicalKeyboardKey.shiftRight,+ ],),BulletedListBlockKeys.type: BulletedListBlockComponentBuilder(configuration: configuration.copyWith(- placeholderText: (_) => 'List',+ placeholderText: (_) => LocaleKeys.blockPlaceholders_bulletList.tr(),),),NumberedListBlockKeys.type: NumberedListBlockComponentBuilder(configuration: configuration.copyWith(- placeholderText: (_) => 'List',+ placeholderText: (_) => LocaleKeys.blockPlaceholders_numberList.tr(),),),QuoteBlockKeys.type: QuoteBlockComponentBuilder(configuration: configuration.copyWith(- placeholderText: (_) => 'Quote',+ placeholderText: (_) => LocaleKeys.blockPlaceholders_quote.tr(),),),HeadingBlockKeys.type: HeadingBlockComponentBuilder(configuration: configuration.copyWith(padding: (_) => const EdgeInsets.only(top: 12.0, bottom: 4.0),- placeholderText: (node) =>- 'Heading ${node.attributes[HeadingBlockKeys.level]}',+ placeholderText: (node) => LocaleKeys.blockPlaceholders_heading.tr(+ args: [node.attributes[HeadingBlockKeys.level].toString()],+ ),),textStyleBuilder: (level) => styleCustomizer.headingStyleBuilder(level),),diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.jsonindex a9fe4f0717..cd789f5fda 100644--- a/frontend/resources/translations/en.json+++ b/frontend/resources/translations/en.json@@ -1063,9 +1063,16 @@"cardDetails": {"notesPlaceholder": "Enter a / to insert a block, or start typing"},+ "blockPlaceholders": {+ "todoList": "To-do",+ "bulletList": "List",+ "numberList": "List",+ "quote": "Quote",+ "heading": "Heading {}"+ },"titleBar": {"pageIcon": "Page icon","language": "Language","font": "Font"}-}\ No newline at end of file+}