Skip to content

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.

fix: .tr() missing in side bar tooltip text

chiragkr040eac23be6af8
diff --git a/frontend/app_flowy/assets/translations/en.json b/frontend/app_flowy/assets/translations/en.json
index 39ba056cb9..eca01d1bed 100644
--- a/frontend/app_flowy/assets/translations/en.json
+++ b/frontend/app_flowy/assets/translations/en.json
@@ -99,6 +99,10 @@
"addNewRow": "Add a new row",
"openMenu": "Click to open menu"
},
+ "sideBar": {
+ "closeSidebar": "Close side bar",
+ "openSidebar": "Open side bar"
+ },
"notifications": {
"export": {
"markdown": "Exported Note To Markdown",
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart
index d978cc5ff6..f9704a695f 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart
@@ -26,6 +26,7 @@ import 'package:app_flowy/core/frameless_window.dart';
// import 'package:app_flowy/workspace/presentation/home/home_sizes.dart';
import 'package:flowy_infra/image.dart';
import 'package:flowy_infra_ui/style_widget/icon_button.dart';
+import 'package:easy_localization/easy_localization.dart';
import 'app/menu_app.dart';
import 'app/create_button.dart';
@@ -220,8 +221,8 @@ class MenuTopBar extends StatelessWidget {
const Spacer(),
Tooltip(
richMessage: TextSpan(children: [
- const TextSpan(
- text: LocaleKeys.sideBar_closeSidebar + "\n"),
+ TextSpan(
+ text: LocaleKeys.sideBar_closeSidebar.tr() + "\n"),
TextSpan(
text: Platform.isMacOS ? "⌘+\\" : "Ctrl+\\",
style: const TextStyle(color: Colors.white60),
diff --git a/frontend/app_flowy/lib/workspace/presentation/home/navigation.dart b/frontend/app_flowy/lib/workspace/presentation/home/navigation.dart
index 9513a20ccc..019a567932 100644
--- a/frontend/app_flowy/lib/workspace/presentation/home/navigation.dart
+++ b/frontend/app_flowy/lib/workspace/presentation/home/navigation.dart
@@ -11,6 +11,7 @@ import 'package:flowy_infra_ui/style_widget/text.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:styled_widget/styled_widget.dart';
+import 'package:easy_localization/easy_localization.dart';
typedef NaviAction = void Function();
@@ -100,7 +101,7 @@ class FlowyNavigation extends StatelessWidget {
turns: const AlwaysStoppedAnimation(180 / 360),
child: Tooltip(
richMessage: TextSpan(children: [
- const TextSpan(text: LocaleKeys.sideBar_openSidebar + "\n"),
+ TextSpan(text: LocaleKeys.sideBar_openSidebar.tr() + "\n"),
TextSpan(
text: Platform.isMacOS ? "⌘+\\" : "Ctrl+\\",
style: const TextStyle(color: Colors.white60),