web: hide spell checker language selector on mac os

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-07-14 12:42:49 +05:00
parent 867af58695
commit a8b6fe78ba

View File

@@ -31,6 +31,7 @@ import { SpellCheckerLanguages } from "./components/spell-checker-languages";
import { CustomizeToolbar } from "./components/customize-toolbar";
import { DictionaryWords } from "./components/dictionary-words";
import { strings } from "@notesnook/intl";
import { isMac } from "../../utils/platform";
export const EditorSettings: SettingsGroup[] = [
{
@@ -164,7 +165,7 @@ export const EditorSettings: SettingsGroup[] = [
key: "spell-checker-languages",
title: strings.languages(),
description: strings.spellCheckerLanguagesDescription(),
isHidden: () => !useSpellChecker.getState().enabled,
isHidden: () => !useSpellChecker.getState().enabled || isMac(),
onStateChange: (listener) =>
useSpellChecker.subscribe((c) => c.enabled, listener),
components: [