WIP: feat(firefox): add spell check dictionaries #61

Draft
bram.buijs wants to merge 1 commit from feat/firefox-dictionaries into main
Collaborator

Closes #55
Ref #56

Firefox language packs translate the interface only, so Dutch spell checking was missing. This ships hunspell dictionaries from nixpkgs and points spellchecker.dictionary_path at them.

Languages are the top ten of the list in #56 (native speakers in Europe): Russian, German, French, English, Italian, Spanish, Polish, Ukrainian, Romanian, Dutch. English covers both en_US and en_GB, matching the language packs already configured.

Dictionaries come from nixpkgs rather than addons.mozilla.org, so spell checking also works on a device that never reaches Mozilla and the closure stays reproducible.

Built against the pinned nixpkgs 26.05, the resulting directory holds one pair per language:

de_DE.aff  de_DE.dic  en_GB.aff  en_GB.dic  en_US.aff  en_US.dic
es_ES.aff  es_ES.dic  fr_FR.aff  fr_FR.dic  it_IT.aff  it_IT.dic
nl_NL.aff  nl_NL.dic  pl_PL.aff  pl_PL.dic  ro_RO.aff  ro_RO.dic
ru_RU.aff  ru_RU.dic  uk_UA.aff  uk_UA.dic

fr-any ships its files as fr-toutesvariantes, which is not a locale code, so they are renamed to fr_FR. Firefox reads the file name as the locale.

Not yet checked on a running device: right click a text field, Check Spelling and Languages, and confirm the ten show up. Worth doing before merge.

Written by a human, code is AI-assisted (Claude Opus 5).

Closes #55 Ref #56 Firefox language packs translate the interface only, so Dutch spell checking was missing. This ships hunspell dictionaries from nixpkgs and points `spellchecker.dictionary_path` at them. Languages are the top ten of the list in #56 (native speakers in Europe): Russian, German, French, English, Italian, Spanish, Polish, Ukrainian, Romanian, Dutch. English covers both en_US and en_GB, matching the language packs already configured. Dictionaries come from nixpkgs rather than addons.mozilla.org, so spell checking also works on a device that never reaches Mozilla and the closure stays reproducible. Built against the pinned nixpkgs 26.05, the resulting directory holds one pair per language: ``` de_DE.aff de_DE.dic en_GB.aff en_GB.dic en_US.aff en_US.dic es_ES.aff es_ES.dic fr_FR.aff fr_FR.dic it_IT.aff it_IT.dic nl_NL.aff nl_NL.dic pl_PL.aff pl_PL.dic ro_RO.aff ro_RO.dic ru_RU.aff ru_RU.dic uk_UA.aff uk_UA.dic ``` `fr-any` ships its files as `fr-toutesvariantes`, which is not a locale code, so they are renamed to `fr_FR`. Firefox reads the file name as the locale. Not yet checked on a running device: right click a text field, Check Spelling and Languages, and confirm the ten show up. Worth doing before merge. Written by a human, code is AI-assisted (Claude Opus 5).
bram.buijs added this to the v0.1.2 milestone 2026-08-05 12:08:34 +00:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rutger.putter changed title from feat(firefox): add spell check dictionaries to WIP: feat(firefox): add spell check dictionaries 2026-08-05 12:10:17 +00:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/firefox-dictionaries:feat/firefox-dictionaries
git switch feat/firefox-dictionaries
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MinBZK/DAWO-NixOS!61
No description provided.