Localize radio channel names (#9256)

* Add localized channel names

* Full names
This commit is contained in:
Morber
2022-06-29 06:27:19 +03:00
committed by GitHub
parent 75a7d8e794
commit c3a164b906
6 changed files with 26 additions and 13 deletions

View File

@@ -10,6 +10,8 @@ namespace Content.Shared.Radio
/// </summary>
[ViewVariables] [DataField("name")] public string Name { get; private set; } = string.Empty;
[ViewVariables(VVAccess.ReadOnly)] public string LocalizedName => Loc.GetString(Name);
/// <summary>
/// Single-character prefix to determine what channel a message should be sent to.
/// </summary>