public TextAndCulture GetTextWithCulture(StringToken token, CultureInfo culture, object model)
        {
            var result = _localizationDataProvider.GetTextWithCulture(token, GetCulture(culture));

            if (result != null && model != null)
            {
                result.Text = ObjectFormatter.TokenFormat(result.Text, model);
            }
            return(result);
        }
Beispiel #2
0
 public string FormatTokenWith(TParams tokenModel, CultureInfo culture)
 {
     return(ObjectFormatter.TokenFormat(base.ToString(culture), tokenModel));
 }