Merge pull request #139701 from wamserma/firefox-bin-locales

firefox-bin: fix locale selection

authored by

Bernardo Meurer and committed by
GitHub
5659072a 167a04d5

+7 -2
+7 -2
pkgs/applications/networking/browsers/firefox-bin/default.nix
··· 50 50 , ffmpeg 51 51 , runtimeShell 52 52 , mesa # firefox wants gbm for drm+dmabuf 53 - , systemLocale ? config.i18n.defaultLocale or "en-US" 53 + , systemLocale ? config.i18n.defaultLocale or "en_US" 54 54 }: 55 55 56 56 let ··· 78 78 79 79 defaultSource = lib.findFirst (sourceMatches "en-US") {} sources; 80 80 81 - source = lib.findFirst (sourceMatches systemLocale) defaultSource sources; 81 + mozLocale = 82 + if systemLocale == "ca_ES@valencia" 83 + then "ca-valencia" 84 + else lib.replaceStrings ["_"] ["-"] systemLocale; 85 + 86 + source = lib.findFirst (sourceMatches mozLocale) defaultSource sources; 82 87 83 88 pname = "firefox-${channel}-bin-unwrapped"; 84 89