diff --git a/README.md b/README.md index 1cc0953..6750446 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo # - Vietnamese: "vi_vn" # - Polish: "pl" # - Ukrainian: "uk" +# - Norwegian: "nb_no", "nn_no" dictionaries = ["en_us", "en_gb"] # Custom allowlist of words to ignore (case-insensitive) diff --git a/crates/codebook/src/dictionaries/repo.rs b/crates/codebook/src/dictionaries/repo.rs index efa45d5..75c7766 100644 --- a/crates/codebook/src/dictionaries/repo.rs +++ b/crates/codebook/src/dictionaries/repo.rs @@ -149,6 +149,16 @@ static HUNSPELL_DICTIONARIES: LazyLock> = LazyLock::new(|| { "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.aff", "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/uk/index.dic", ), + HunspellRepo::new( + "nb_no", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.aff", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nb/index.dic", + ), + HunspellRepo::new( + "nn_no", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.aff", + "https://raw.githubusercontent.com/blopker/dictionaries/refs/heads/main/dictionaries/nn/index.dic", + ), ] });