iamcco / coc-spell-checker

A basic spell checker that works well with camelCase code for (Neo)vim
MIT License
263 stars 14 forks source link

French words not spell checked correctly despite correct cspell configuration #37

Open esetnik opened 2 years ago

esetnik commented 2 years ago

Describe the bug French words are not spell checked correctly.

To Reproduce Steps to reproduce the behavior:

frontend/public/locales/fr/trainingPlans.json

{
  "buttons": {
    "addOutsideCompletion": "Ajouter un achèvement extérieur"
  },
  "contentForEmpty": {
    "button": "Ajouter une certification",
    "description": "Les plans de formation sont générés en fonction des certifications que vous avez répertoriées\ndans le système ou par affectation de service. Télécharger une certification sur\ncommencez à démarrer ou contactez votre responsable de la formation pour obtenir de l'aide.",
    "title": "Aucun plan de formation trouvé"
  },
  "imagesAlts": {
    "headerImage": "plan d'entraînement {{name}}"
  },
  "labels": {
    "complete": "Compléter",
    "distributiveLimit": "Limite distributive",
    "headerProgress": "Progression du plan de formation",
    "overallProgress": "Les progrès d'ensemble",
    "requirements": "Conditions:",
    "used": "Utilisé"
  },
  "messages": {
    "noDescription": "Ce plan de formation n'a pas de description"
  },
  "placeholders": {
    "selectTrainingPlan": "Sélectionnez un plan de formation"
  },
  "title": "Plans de formation"
}

.cspell.json

{
  "version": "0.2",
  "ignorePaths": [
    ".vscode/settings.json",
    ".vim/coc-settings.json",
    "frontend/node_modules/**",
    "frontend/coverage/**",
    "frontend/build/**",
    "frontend/db/dist/**",
    "frontend/package.json",
    "docker-compose*.yml",
    "cloudformation.yml",
    "web/src/composer.json",
    "web/src/vendor",
    "web/src/shared/scripts",
    "web/src/css"
  ],
  "allowCompoundWords": true,
  "ignoreWords": ["culturehq"],
  "words": [
    "AMZN",
    "capce",
    "crunz",
    "cronitor",
    "entityid",
    "esetnik",
    "esnext",
    "falsey",
    "Gravatar",
    "hacky",
    "Handtevy",
    "hocs",
    "iframe",
    "imgix",
    "immer",
    "junit",
    "jwplayer",
    "luxon",
    "Maknz",
    "newid",
    "noopener",
    "NREMT",
    "nuka",
    "onstatechange",
    "onupdatefound",
    "phpcs",
    "phuocng",
    "recertification",
    "reduxjs",
    "signup",
    "testid",
    "tsql",
    "Tuupola",
    "unmount",
    "unregister",
    "UPDLOCK",
    "wdyr"
  ],
  "import": ["./frontend/node_modules/@cspell/dict-fr-fr/cspell-ext.json"],
  "overrides": [
    {
      "filename": "**/locales/fr/**/{*.json,*.yml}",
      "language": "en,fr"
    },
    {
      "filename": "**/__test__/**",
      "language": "en,fr"
    },
    {
      "filename": "**/{*.test.ts,*.test.tsx}",
      "language": "en,fr"
    }
  ]
}

.vim/coc-settings.json

{
  "cSpell.import": ["../.cspell.json"],
  "cSpell.spellCheckDelayMs": 500,
  "cSpell.enabledLanguageIds": [
    "vim",
    "asciidoc",
    "yaml.docker-compose",
    "c",
    "cpp",
    "csharp",
    "css",
    "git-commit",
    "go",
    "handlebars",
    "haskell",
    "html",
    "jade",
    "java",
    "javascript",
    "javascriptreact",
    "json",
    "jsonc",
    "latex",
    "less",
    "markdown",
    "php",
    "plaintext",
    "python",
    "pug",
    "restructuredtext",
    "rust",
    "scala",
    "scss",
    "text",
    "typescript",
    "typescriptreact",
    "yaml",
    "yml"
  ]
}

Expected behavior Behavior between command line execution of cspell and coc-spell-checker should match

Screenshots

Screen Shot 2021-12-17 at 3 59 35 PM

Desktop (please complete the following information):

Log:

not sure where to get log output
esetnik commented 2 years ago

@iamcco any idea where I should look to debug this? I'm still having the same issue. cspell on the command line with the same imported configuration file does not report any errors.