[ad_1]
I’m making an attempt to localize push notifications, passing in information localization map with key as a language code.
For the modification notification utilizing UNNotificationServiceExtension, however caught on the problem: Locale.present.languageCode all the time returns en (calling from UNNotificationServiceExtension). My telephone and app locale is ready to uk.
I do know {that a} doable answer will be to retailer the language code within the UserDefaults, nevertheless it appears to me like a workaround. Has somebody discovered the problem to get the proper language code from the extension?
[ad_2]
