/// <summary>Get a translation key for an enum value.</summary> /// <param name="age">The child age.</param> public static string For(ChildAge age) { return($"npc.child.age.{age.ToString().ToLower()}"); }
/// <summary>Get a translation for an enum value.</summary> /// <param name="age">The child age.</param> public static Translation For(ChildAge age) { return(L10n.Helper.Get($"npc.child.age.{age.ToString().ToLower()}")); }
/// <summary>Get a translation for an enum value.</summary> /// <param name="age">The child age.</param> public static string For(ChildAge age) { return(I18n.GetByKey($"npc.child.age.{age.ToString().ToLower()}")); }