tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit a144cd932b075502dbb655a085e2439f3741d717
parent c3b06ff4b4f64d1428b88b38674752d84843470f
Author: Leonardo Paffi <leonardopaffi@hotmail.it>
Date:   Wed, 29 Oct 2025 22:21:30 +0000

Bug 1996678 - Translation not automatically offered for 'nb'. r=translations-reviewers,gregtatum,nordzilla

Differential Revision: https://phabricator.services.mozilla.com/D270376

Diffstat:
Mtoolkit/components/translations/actors/TranslationsParent.sys.mjs | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/toolkit/components/translations/actors/TranslationsParent.sys.mjs b/toolkit/components/translations/actors/TranslationsParent.sys.mjs @@ -3624,6 +3624,9 @@ export class TranslationsParent extends JSWindowActorParent { result.confident = false; } + // Some language tags are not supported by CLD2 + result.language = this.maybeRefineMacroLanguageTag(result.language); + const htmlLangAttribute = this.languageState?.detectedLanguages?.htmlLangAttribute ?? null; const identifiedLanguage = result.language;