From e2eca2ccb3f51c3b1693e1c77c9259152c17e490 Mon Sep 17 00:00:00 2001 From: Colin Perry <55003831+17ColinMiPerry@users.noreply.github.com> Date: Fri, 9 May 2025 09:51:06 -0700 Subject: [PATCH] Add Disable Spellcheck Option (#3795) * Implemented spellcheck toggle in Settings * ran yarn lint * reduce read complexity for appearance spellcheck lint --------- Co-authored-by: timothycarambat --- .../Actions/EditMessage/index.jsx | 2 + .../ChatContainer/PromptInput/index.jsx | 2 + frontend/src/locales/ar/common.js | 4 ++ frontend/src/locales/da/common.js | 4 ++ frontend/src/locales/de/common.js | 4 ++ frontend/src/locales/en/common.js | 4 ++ frontend/src/locales/es/common.js | 4 ++ frontend/src/locales/fa/common.js | 4 ++ frontend/src/locales/fr/common.js | 4 ++ frontend/src/locales/he/common.js | 4 ++ frontend/src/locales/it/common.js | 4 ++ frontend/src/locales/ja/common.js | 4 ++ frontend/src/locales/ko/common.js | 4 ++ frontend/src/locales/nl/common.js | 4 ++ frontend/src/locales/pt_BR/common.js | 4 ++ frontend/src/locales/ru/common.js | 4 ++ frontend/src/locales/tr/common.js | 4 ++ frontend/src/locales/vn/common.js | 4 ++ frontend/src/locales/zh/common.js | 4 ++ frontend/src/locales/zh_TW/common.js | 4 ++ frontend/src/models/appearance.js | 15 ++++-- .../GeneralSettings/Settings/Chat/index.jsx | 2 + .../Settings/components/SpellCheck/index.jsx | 50 +++++++++++++++++++ 23 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 frontend/src/pages/GeneralSettings/Settings/components/SpellCheck/index.jsx diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx index 3c1fd16a..6967f120 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/EditMessage/index.jsx @@ -1,5 +1,6 @@ import { Pencil } from "@phosphor-icons/react"; import { useState, useEffect, useRef } from "react"; +import Appearance from "@/models/appearance"; const EDIT_EVENT = "toggle-message-edit"; @@ -98,6 +99,7 @@ export function EditMessageForm({