From f60df5ae847d23b36ec6ac1dd309b2970d3a5315 Mon Sep 17 00:00:00 2001 From: Sofus Addington Date: Thu, 23 Oct 2025 11:58:41 +0200 Subject: [PATCH] danish dictionary --- README.md | 1 + crates/codebook/src/dictionaries/repo.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 05e6786..ea98e18 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,7 @@ Project-specific configuration is loaded from either `codebook.toml` or `.codebo # - Portuguese (Brazil): "pt_br" # - Russian: "ru" # - Swedish: "sv" +# - Danish: "da" 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 b362bb0..8c46d5b 100644 --- a/crates/codebook/src/dictionaries/repo.rs +++ b/crates/codebook/src/dictionaries/repo.rs @@ -109,6 +109,11 @@ static HUNSPELL_DICTIONARIES: LazyLock> = LazyLock::new(|| { "https://raw.githubusercontent.com/wooorm/dictionaries/refs/heads/main/dictionaries/nl/index.aff", "https://raw.githubusercontent.com/wooorm/dictionaries/refs/heads/main/dictionaries/nl/index.dic", ), + HunspellRepo::new( + "da", + "https://raw.githubusercontent.com/wooorm/dictionaries/refs/heads/main/dictionaries/da/index.aff", + "https://raw.githubusercontent.com/wooorm/dictionaries/refs/heads/main/dictionaries/da/index.dic", + ), ] });