i18n: Add Norwegian translations (nb, nn) - #914
Merged
Leonard Hecker (lhecker) merged 1 commit intoAug 11, 2026
Conversation
Adds Bokmål (nb) and Nynorsk (nn) for all string IDs, plus a `no` -> `nb` alias for systems that report the legacy macro-language tag. Ctrl/Alt/Shift and "Tabs" are left to the English fallback: Norwegian keyboards use the English key labels, and "Tabs" is the term in use. Not added to __default__ to keep the default binary size unchanged; build with EDIT_CFG_LANGUAGES=...,nb,nn to include them.
Leonard Hecker (lhecker)
enabled auto-merge (squash)
August 11, 2026 12:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Norwegian Bokmål (
nb) and Norwegian Nynorsk (nn) toi18n/edit.toml, covering 59 of the 64 string IDs.Five IDs are deliberately left to the English fallback rather than translated:
Ctrl,Alt,Shift— Norwegian keyboards are labelled with the English key names, so translating them would be wrong. (Same reasondaonly overridesShift.)IndentationTabs— "Tabs" is the term used in Norwegian as well.Also adds a
no = "nb"alias to__alias__, so systems reporting the legacy macro-language tag (no_NO, some macOS configurations) get Bokmål rather than falling back to English.nb_NOandnn_NOare already covered by the existing prefix matching.__default__is intentionally left unchanged, so the default binary size is unaffected — this matches how the other Nordic languages (da,sv,fi) are carried. We'd be happy to seenb/nnpromoted into__default__if you ever consider it worthwhile, but we're not expecting it and this PR does not depend on it.Verified with
EDIT_CFG_LANGUAGES=en,nb,nn cargo build, then run underLANG=nb_NO.UTF-8andLANG=nn_NO.UTF-8: