Skip to content

[BUG]: Multi-dictionary setup not working for "uk" and "en_us" #284

Description

Issue Description

I'm bilingual and have some repositories with both English and Ukrainian words in them.

Separately (i.e., dictionaries = ["en_us"] or dictionaries = ["uk"]) spelling works as expected, but when both dictionaries are added to configuration only Ukrainian spelling is checked.

Operating System

Linux (Ubuntu/Debian)

Editor

Neovim

Codebook Version

0.3.41

Configuration

dictionaries = [
    "en_us",
    "uk",
]

# the same behavior for:
# dictionaries = [
#     "uk",
#     "en_us",
# ]

Steps to Reproduce

  1. Create en_us.md with helo wordl
  2. Create uk.md with привт свт
  3. Run codebook-lsp lint en_us.md
  4. Run codebook-lsp lint uk.md

Expected Behavior

Both files produce 2 linting errors.

Actual Behavior

Only uk.md produces 2 linting errors. en_us.md produces:

using global config /home/user/.config/codebook/codebook.toml

Out of 1 total file(s), checked 1, ignored 0, and excluded 0.
Found 0 spelling error(s) in 0 file(s).

Code Sample


Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions