megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

Support Spanish and other languages in cspell

Open ivanbaldo opened this issue 2 months ago • 2 comments

So I set "language": "en,es" in my .cspell.json file and everything is alright in VSCode, later I also tried:

"languageSettings": [
    {
        "languageId": "*",
        "locale": "en,es",
    }
]

But Megalinter's cspell doesn't have the Spanish dictionary.

I couldn't find how to add it, so maybe this is a documentation enhancement request in that case.

Otherwise please consider to include https://github.com/streetsidesoftware/vscode-cspell-dict-extensions or an easy way to add it by pipeline users.

Thanks!!!

ivanbaldo avatar Nov 03 '25 15:11 ivanbaldo

@ivanbaldo please can you try the following ?

PRE_COMMANDS:
 - command: npm install -D @cspell/dict-es-es ## if it does not work,  try  npm install -g @cspell/dict-es-es
   cwd: root
   run_before_linters: True # Will be run before the execution of the linters themselves; required for npm/pip commands that cannot be run in parallel

Then in your .cspell.json:

{
  "import": ["@cspell/dict-es-es/cspell-ext.json"],
  "language": "es, es_ES",
}

nvuillam avatar Nov 03 '25 22:11 nvuillam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

github-actions[bot] avatar Dec 04 '25 01:12 github-actions[bot]