Use iOS localization handling for strings. (#803)

This commit is contained in:
Doug
2023-04-17 15:58:39 +01:00
committed by GitHub
parent 6efae84c04
commit d01349a60e
14 changed files with 59 additions and 130 deletions
@@ -102,7 +102,7 @@ class NotificationManager: NSObject, NotificationManagerProtocol {
appDisplayName: "\(InfoPlistReader.main.bundleDisplayName) (iOS)",
deviceDisplayName: UIDevice.current.name,
profileTag: pusherProfileTag(),
lang: Bundle.preferredLanguages.first ?? "en")
lang: Bundle.app.preferredLocalizations.first ?? "en")
try await clientProxy.setPusher(with: configuration)
MXLog.info("[NotificationManager] set pusher succeeded")
return true