A static utility class for language handling and text localization. It stores the selected language code and provides a method to translate strings using the Sandbox language system.
namespace CitySim;
public static partial class GameText
{
public static string LanguageCode => Sandbox.Language.SelectedCode;
static partial void Translate(ref string phrase) => phrase = Sandbox.Language.GetPhrase(phrase);
}