Exemplo n.º 1
0
 public static string TranslateMaybeLang(string input, CultureInfo lang = null) =>
 lang == null
         ? TranslInstance.Translate(input)
         : TranslInstance.TranslateForLang(input, lang.Name);
Exemplo n.º 2
0
 /// <summary>to make OldSchool-I18 ignore given invocation</summary>
 public static string TranslateNoExtraction(string input) =>
 TranslInstance.Translate(input);
Exemplo n.º 3
0
 public static string TranslateForLang(string input, CultureInfo lang) =>
 TranslInstance.TranslateForLang(input, lang.Name);
Exemplo n.º 4
0
 public static string Translate(string input) =>
 TranslInstance.Translate(input);