Пример #1
0
 /// <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()}");
 }
Пример #2
0
 /// <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()}"));
 }
Пример #3
0
 /// <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()}"));
 }