Skip to content

i18n: Add Norwegian translations (nb, nn) - #914

Merged
Leonard Hecker (lhecker) merged 1 commit into
microsoft:mainfrom
francisrath:i18n-norwegian
Aug 11, 2026
Merged

i18n: Add Norwegian translations (nb, nn)#914
Leonard Hecker (lhecker) merged 1 commit into
microsoft:mainfrom
francisrath:i18n-norwegian

Conversation

@francisrath

Copy link
Copy Markdown
Contributor

Adds Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) to i18n/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 reason da only overrides Shift.)
  • 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_NO and nn_NO are 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 see nb/nn promoted 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 under LANG=nb_NO.UTF-8 and LANG=nn_NO.UTF-8:

 Fil  Rediger  Vis  Hjelp
Finn:
[◻ Skil store/små]  [◻ Heile ord]  [◻ Bruk regex]  [Lukk]
1 │
 [Plain Text]  [LF]  [UTF-8]  [Mellomrom:4]  1:1        [Untitled-1.txt]

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.

@lhecker Leonard Hecker (lhecker) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lhecker
Leonard Hecker (lhecker) enabled auto-merge (squash) August 11, 2026 12:12
@lhecker
Leonard Hecker (lhecker) merged commit 01b3bc6 into microsoft:main Aug 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants