Wrong localization for enum

Asked by At

I have this autogenerated localization file

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

But my html show only object Object instead of currencies' titles.

<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>

Because of autogenerated

<option value="EUR">
  <Translate contentKey="globsApp.Currency.EUR" />
</option>

How to fix this?

0 Answers