Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
esetnik opened this issue Dec 17, 2021 · 1 comment

Comments

@esetnik
Copy link
Contributor

esetnik commented Dec 17, 2021

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):

  • OS:
    macOS 12.1

Log:

not sure where to get log output
@esetnik
Copy link
Contributor Author

esetnik commented May 4, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant