NotificationService Extension returns different locale than App target

120 Views Asked by At

I'm trying to get my current locale in the app and in the NotificationService extension. The code looks like this:

let locale = Locale.current.identifier

In the app target the locale is de_DE and in the NotificationService extension it evaluates to en_DE which results in an unwanted behaviour. Am I missing something?

0

There are 0 best solutions below