How to read filenames from internal folder structure Angular 7?

662 Views Asked by At

I have a requirement something like I have languages json file such as da-DA.json de-DE.json in my assets folder inside i18n directory in which the language mapping is written. Now I want a dropdown where I can have my users select these languages. But I'm facing challenge to map it to my component. I saw these answers which states it is not possible to do so in the following links link1 link2

So I wanted to know which is the right way to achieve something like this.

0

There are 0 best solutions below