You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
437 B
13 lines
437 B
using System.Globalization;
|
|
|
|
namespace DiscordChatExporter.Gui.Utils;
|
|
|
|
internal static class Internationalization
|
|
{
|
|
public static bool Is24Hours =>
|
|
string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.AMDesignator)
|
|
&& string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.PMDesignator);
|
|
|
|
public static string AvaloniaClockIdentifier => Is24Hours ? "24HourClock" : "12HourClock";
|
|
}
|