[browser] Fix missing braces when resolving application culture (#88264)
authorIlona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Fri, 30 Jun 2023 21:15:28 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 21:15:28 +0000 (23:15 +0200)
Regression from https://github.com/dotnet/runtime/pull/86255.

src/mono/wasm/runtime/loader/blazor/_Integration.ts

index 32ca65a..5bf57fe 100644 (file)
@@ -156,7 +156,7 @@ export function mapBootConfigToMonoConfig(moduleConfig: MonoConfigInternal, appl
             assets.push(asset);
         }
     }
-    const applicationCulture = resourceLoader.startOptions.applicationCulture || ENVIRONMENT_IS_WEB ? (navigator.languages && navigator.languages[0]) : Intl.DateTimeFormat().resolvedOptions().locale;
+    const applicationCulture = resourceLoader.startOptions.applicationCulture || (ENVIRONMENT_IS_WEB ? (navigator.languages && navigator.languages[0]) : Intl.DateTimeFormat().resolvedOptions().locale);
     const icuDataResourceName = getICUResourceName(resourceLoader.bootConfig, moduleConfig, applicationCulture);
     let hasIcuData = false;
     for (const name in resources.runtime) {