access Bundle.main.preferredLocalizations from Widget target

I am trying to localize my widgets depending on the app language, but when I try to get supported languages in my app from the widget extension using:
Code Block
Bundle.main.preferredLocalizations
// returns "en" only

But if I used the same code in the main app, it returns all languages supported in my app.

Any solution for that?