Skip to content

Commit

Permalink
feat: Track current culture
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Dec 13, 2024
1 parent 4edb7da commit 4a53ab4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Uno.DevTools.Telemetry/TelemetryCommonProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Uno.DevTools.Telemetry.Helpers;
using System.Security.Cryptography;
using System.Net.NetworkInformation;
using System.Globalization;

namespace Uno.DevTools.Telemetry
{
Expand All @@ -46,7 +47,8 @@ public TelemetryCommonProperties(
public const string TelemetryProfile = "Telemetry Profile";
public const string CurrentPathHash = "Current Path Hash";
public const string KernelVersion = "Kernel Version";
public const string IsRunningCI = "IsRunningCI";
public const string IsRunningCI = "Kernel Version";
public const string CurrentCulture = "CurrentCulture";

private const string TelemetryProfileEnvironmentVariable = "DOTNET_CLI_TELEMETRY_PROFILE";

Expand All @@ -63,6 +65,7 @@ public Dictionary<string, string> GetTelemetryCommonProperties()
{ MachineId, GetMachineId() },
{ CurrentPathHash, HashBuilder.Build(_getCurrentDirectory()) },
{ KernelVersion, GetKernelVersion() },
{ CurrentCulture, CultureInfo.CurrentCulture.IetfLanguageTag },
};

var runningCI = GetIsRunningCI();
Expand Down

0 comments on commit 4a53ab4

Please sign in to comment.