Skip to content

Commit 7c32ca0

Browse files
authored
Add Czech (cs) dictionary (#241)
The Czech Hunspell dictionary already exists in the blopker/dictionaries fork but was not wired up in the code. This adds it to the HUNSPELL_DICTIONARIES list and documents it in the README.
1 parent da4c68b commit 7c32ca0

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo
264264
# Default: ["en_us"]
265265
# Available dictionaries:
266266
# - English: "en_us", "en_gb"
267+
# - Czech: "cs"
267268
# - German: "de", "de_at", "de_ch"
268269
# - Dutch: "nl_nl"
269270
# - Spanish: "es"

crates/codebook/src/dictionaries/repo.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ static HUNSPELL_DICTIONARIES: LazyLock<Vec<HunspellRepo>> = LazyLock::new(|| {
5959
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/en-GB/index.aff",
6060
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/en-GB/index.dic",
6161
),
62+
HunspellRepo::new(
63+
"cs",
64+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/cs/index.aff",
65+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/cs/index.dic",
66+
),
6267
HunspellRepo::new(
6368
"es",
6469
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/es/index.aff",

0 commit comments

Comments
 (0)