Files
SPT-Server-Build/Libraries/Core/Models/Spt/Config/LocaleConfig.cs
T
TetrisGG 28a434a622 Update Models Comments
Changed Comments to adhere to xml standard in all Models.
Added missing comments.
2025-03-04 22:38:11 +01:00

51 lines
1014 B
C#

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