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