Skip to content

Commit ca20006

Browse files
authored
Add Ukrainian dictionary (#212)
1 parent 1b6cedb commit ca20006

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
@@ -254,6 +254,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo
254254
# - Latvian: "lv"
255255
# - Vietnamese: "vi_vn"
256256
# - Polish: "pl"
257+
# - Ukrainian: "uk"
257258
dictionaries = ["en_us", "en_gb"]
258259

259260
# Custom allowlist of words to ignore (case-insensitive)

crates/codebook/src/dictionaries/repo.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ static HUNSPELL_DICTIONARIES: LazyLock<Vec<HunspellRepo>> = LazyLock::new(|| {
144144
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/pl/index.aff",
145145
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/pl/index.dic",
146146
),
147+
HunspellRepo::new(
148+
"uk",
149+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.aff",
150+
"https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.dic",
151+
),
147152
]
148153
});
149154

0 commit comments

Comments
 (0)