Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public string FormatTokenWith(TParams tokenModel, CultureInfo culture)
 {
     return(ObjectFormatter.TokenFormat(base.ToString(culture), tokenModel));
 }