枚举的本地化错误

时间:2019-04-22 22:09:27

标签: java localization internationalization jhipster

我有这个自动生成的本地化文件

private void BtnOpenFile_Click(object sender, RoutedEventArgs e)
{
    OpenFileDialog dlg = new OpenFileDialog();
    dlg.Filter = "Rich Text Format (*.rtf)|*.rtf|All files (*.*)|*.*";
    if (dlg.ShowDialog() == true)
    {
        FileStream fileStream = new FileStream(dlg.FileName, FileMode.Open);
        TextRange range = new TextRange(mainRTB.Document.ContentStart, mainRTB.Document.ContentEnd);
        range.Load(fileStream, DataFormats.Rtf);
    }
}

但是我的html只显示对象Object,而不显示货币标题。

{
  "globsApp": {
    "Currency": {
  "null": "",
  "USD": "USD",
  "EUR": "EUR",
  "RUR": "RUR"
    }
  }
}

由于自动生成

<select name="currency" id="product-currency" lass="form-control 
    is-touched is-pristine av-valid form-control">
<option value="USD">[object Object]</option>

<option value="EUR">[object Object]</option>

<option value="RUR">[object Object]</option>

该如何解决?

0 个答案:

没有答案