From 485f3de0bb53f652049362b2fb02c564e0450880 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Fri, 13 Dec 2024 14:33:24 -0500 Subject: [PATCH] feat: Track current culture --- src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs b/src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs index 0efacee..6f087b8 100644 --- a/src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs +++ b/src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs @@ -22,6 +22,7 @@ using Uno.DevTools.Telemetry.Helpers; using System.Security.Cryptography; using System.Net.NetworkInformation; +using System.Globalization; namespace Uno.DevTools.Telemetry { @@ -47,6 +48,7 @@ public TelemetryCommonProperties( public const string CurrentPathHash = "Current Path Hash"; public const string KernelVersion = "Kernel Version"; public const string IsRunningCI = "IsRunningCI"; + public const string CurrentCulture = "CurrentCulture"; private const string TelemetryProfileEnvironmentVariable = "DOTNET_CLI_TELEMETRY_PROFILE"; @@ -63,6 +65,7 @@ public Dictionary GetTelemetryCommonProperties() { MachineId, GetMachineId() }, { CurrentPathHash, HashBuilder.Build(_getCurrentDirectory()) }, { KernelVersion, GetKernelVersion() }, + { CurrentCulture, CultureInfo.CurrentCulture.IetfLanguageTag }, }; var runningCI = GetIsRunningCI();