How to put json file map object from ngx-translate into typescript map using translationservice?

Viewed 15

Ok guys so I'm using ngx-translate with json files. Now here's the issue, I want to use the map inside the json, and put it in a map inside the ts file. The json file example :

"edit" : {
  "title": "Change profile",
  "avatar" : {
    "topTypes" : [
      {
        "key" : "LongHairBigHair",
        "value" : "Wavy Hair"
      },
      {
        "key" : "LongHairBob",
        "value" : "Shoulder Hair"
      }
    ]
  }
}

how would I put these values inside a typescript map using the translationservice?

0 Answers
Related