最近做一个WPF的项目。
需要把xaml和cs中部分中文翻译成西班牙文。
1.有尝试用资源文件/资源字典方式,发现系统框架原因,程序绕过了App.xaml(cs). 此路肯定走不通。
2.现在想尝试用字典的方式来做,但是不知道字典的Key怎么跟xaml的label做绑定。请帮助!
(1) 定义字典:

//中文
private Dictionary<string, string> viewDisplayNameZH = new Dictionary<string, string>
{
{ "ProdLine", "生产线" },
{ "WO", "工单" },
};
//西班牙文
private Dictionary<string, string> viewDisplayNameSP = new Dictionary<string, string>
{
{ "ProdLine", "Linea de Produccion" },
{ "WO", "Orden de produccion" },
};
(2 )字典的value 如何显示xaml的label中呢?

```c#
<Label
Name="Prod_Line"
HorizontalAlignment="Left"
Content="1"
FontSize="20"
Foreground="White" Margin="0,0,0,2" />
(3)home.cs中还有部分中文,应该如何显示字典的value呢?

```c#
var plannedCompletionSeries = new ColumnSeries
{
Title = "实际产出(Actual Output)",
Values = new ChartValues<int>(productionDatas.Select(d => d.PlannedCompletion)),
DataLabels = true,
LabelPoint = point => point.Y.ToString(),
FontFamily = new System.Windows.Media.FontFamily("Arial"),
Fill = Brushes.Orange,
FontSize = 10,
Foreground = System.Windows.Media.Brushes.White // 字体颜色
};