Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Spt/Config/LocaleConfig.cs
T
Chomp f562c634a7 Converted lists to hashsets where appropriate
Removed unnecessary uses of  ToList()
string to mongoId conversions
2025-07-24 13:26:34 +01:00

31 lines
967 B
C#

using System.Text.Json.Serialization;
namespace SPTarkov.Server.Core.Models.Spt.Config;
public record LocaleConfig : BaseConfig
{
[JsonPropertyName("kind")]
public override string Kind { get; set; } = "spt-locale";
/// <summary>
/// e.g. ru/en/cn/fr etc, or 'system', will take computer locale setting
/// </summary>
[JsonPropertyName("gameLocale")]
public required string GameLocale { get; set; }
/// <summary>
/// e.g. ru/en/cn/fr etc, or 'system', will take computer locale setting
/// </summary>
[JsonPropertyName("serverLocale")]
public required string ServerLocale { get; set; }
/// <summary>
/// Languages server can be translated into
/// </summary>
[JsonPropertyName("serverSupportedLocales")]
public required HashSet<string> ServerSupportedLocales { get; set; }
[JsonPropertyName("fallbacks")]
public required Dictionary<string, string> Fallbacks { get; set; }
}