public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (value is string str)
     {
         return(LocalizedResourceHelper.GetText(str));
     }
     return(value);
 }
Example #2
0
 public string GetText(string resourceKey, params object[] objects)
 {
     return(LocalizedResourceHelper.GetText(resourceKey, objects));
 }