You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
426 B

using System.Windows;
namespace SparkClient.Model.Helper;
/// <summary>
/// 多语言工具类
/// </summary>
public class MultilingualHelper
{
public static string getString(string key)
{
var result = Application.Current.TryFindResource(key);
if (result == null)
{
throw new NullReferenceException(key + " is not a valid key");
}
return (string)result;
}
}