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:
But if I used the same code in the main app, it returns all languages supported in my app.
Any solution for that?
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?