I have a locale object that looks like this

```
 {
    hello.title: {
     en: "Hi",
     sv: "Hej"
    },
    hello.text: {
     en: "Hur mår du?",
     sv: "How are you?"
    },
}

   function mapToNewObj(locale, obj) {

    // Here I want to return a new object that looks like this
        let's say the locale is "sv"

       return {
        hello.title: Hej,
        hello.text: 'Hur mår du?'
      }
}

```

I want to create a new object where the key is for example "hello.title" and the value is the string for the locale that is passed in as the first argument.

How should I do it?