Can spellcheck be used for different languages in Slack?

2 replies
Last updated: Apr 25, 2024
Hey Team, does anyone know if spellcheck can be used for different languages?
AI Update

Yes, spellcheck in Sanity Studio can work with different languages! According to the Block type documentation, the Portable Text Editor has a spellCheck option that you can enable or disable (it defaults to true).

Here's how you can configure it in your schema:

{
  name: 'content',
  type: 'array',
  of: [
    {
      type: 'block',
      options: {
        spellCheck: true // enabled by default
      }
    }
  ]
}

Important to know: The actual language used for spellchecking is determined by your browser's language settings, not by Sanity itself. The spellcheck feature relies on the browser's built-in spell checker, which means:

  • The language detection and dictionaries come from the browser (Chrome, Firefox, Safari, etc.)
  • Each browser has different language support and dictionary quality
  • Content editors can typically configure their browser's spellcheck language preferences

For multilingual content workflows, here are some common approaches:

  1. Separate fields per language - Create different fields for each language, and editors switch their browser's spellcheck language when editing different language fields
  2. Browser configuration - Have editors configure their browser to support multiple spellcheck languages
  3. Browser extensions - Some editors use browser extensions that allow quick switching between spellcheck languages

If you need more advanced language-specific validation beyond basic spellchecking (like grammar checking or language-specific rules), you might want to explore custom validation rules or integrate third-party language tools into your workflow.

I don’t believe so. As far as I’m aware, the
spellcheck
option only takes a boolean to turn it on and off.
Ok thanks
user M
. Hey just hijacking this thread to highlight a question I asked the other day too 🙂 https://sanity-io-land.slack.com/archives/C9Z7RC3V1/p1713918747551649

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?