-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Today widget localization #15614
Today widget localization #15614
Changes from 1 commit
7480f36
0e17208
a5adef2
45ac742
4cd5903
7e2a78f
b56e21e
0c1de98
5809144
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- 25.6.0.1
- 25.5.0.1
- 25.5
- 25.4.2
- 25.4.1
- 25.4.0.4
- 25.4.0.3
- 25.4.0.2
- 25.4
- 25.3.0.0
- 25.3
- 25.2.0.0
- 25.2
- 25.1.0.1
- 25.1.0.0
- 25.1
- 25.0.0.1
- 25.0.0.0
- 25.0
- 24.9.1
- 24.9.0.5
- 24.9.0.3
- 24.9.0.2
- 24.9.0.0
- 24.9
- 24.8.0.3
- 24.8.0.2
- 24.8.0.1
- 24.8.0.0
- 24.8
- 24.7.0.4
- 24.7.0.3
- 24.7.0.2
- 24.7.0.1
- 24.7.0.0
- 24.7
- 24.6.0.2
- 24.6.0.1
- 24.6.0.0
- 24.6
- 24.5.0.1
- 24.5.0.0
- 24.5
- 24.4.0.2
- 24.4.0.1
- 24.4.0.0
- 24.4
- 24.3.0.4
- 24.3.0.3
- 24.3.0.0
- 24.3
- 24.2.1
- 24.2.0.2
- 24.2.0.1
- 24.2.0.0
- 24.2
- 24.1.0.2
- 24.1.0.1
- 24.1.0.0
- 24.1
- 24.0.1
- 24.0.0.2
- 24.0.0.1
- 24.0.0.0
- 24.0
- 23.9.1
- 23.9.0.4
- 23.9.0.3
- 23.9.0.2
- 23.9.0.1
- 23.9
- 23.8.1
- 23.8.0.2
- 23.8.0.1
- 23.8.0.0
- 23.8
- 23.7.1
- 23.7.0.0
- 23.7
- 23.6.0.0
- 23.6
- 23.5.2
- 23.5.1
- 23.5.0.2
- 23.5.0.1
- 23.5.0.0
- 23.5
- 23.4.0.0
- 23.4
- 23.3.1
- 23.3.0.1
- 23.3.0.0
- 23.3
- 23.2.2
- 23.2.1
- 23.2.0.2
- 23.2.0.1
- 23.2.0.0
- 23.2
- 23.1.0.2
- 23.1.0.1
- 23.1.0.0
- 23.1
- 23.0.1
- 23.0.0.3
- 23.0.0.2
- 23.0.0.1
- 23.0.0.0
- 23.0
- 22.9.0.1
- 22.9.0.0
- 22.9
- 22.8.0.2
- 22.8.0.1
- 22.8.0.0
- 22.8
- 22.7.0.1
- 22.7.0.0
- 22.7
- 22.6.1
- 22.6.0.2
- 22.6.0.1
- 22.6.0.0
- 22.6
- 22.5.1
- 22.5.0.2
- 22.5.0.1
- 22.5.0.0
- 22.5
- 22.4.0.1
- 22.4.0.0
- 22.4
- 22.3.0.1
- 22.3.0.0
- 22.3
- 22.2.0.1
- 22.2.0.0
- 22.2
- 22.1.0.2
- 22.1.0.1
- 22.1.0.0
- 22.1
- 22.0.1
- 22.0.0.2
- 22.0.0.1
- 22.0.0.0
- 22.0
- 21.9.0.3
- 21.9.0.2
- 21.9.0.1
- 21.9.0.0
- 21.9
- 21.8.2
- 21.8.1
- 21.8.0.1
- 21.8.0.0
- 21.8
- 21.7.2
- 21.7.1
- 21.7.0.2
- 21.7.0.1
- 21.7.0.0
- 21.7
- 21.6.0.2
- 21.6.0.1
- 21.6.0.0
- 21.6
- 21.5.1
- 21.5.0.2
- 21.5.0.1
- 21.5.0.0
- 21.5
- 21.4.1
- 21.4.0.3
- 21.4.0.2
- 21.4.0.1
- 21.4.0.0
- 21.4
- 21.3.0.3
- 21.3.0.2
- 21.3.0.1
- 21.3.0.0
- 21.2.0.2
- 21.2.0.1
- 21.2.0.0
- 21.2
- 21.1.0.1
- 21.1.0.0
- 21.1
- 21.0.0.1
- 21.0.0.0
- 21.0
- 20.9.0.1
- 20.9.0.0
- 20.9
- 20.8.0.1
- 20.8.0.0
- 20.8
- 20.7.0.3
- 20.7.0.2
- 20.7.0.1
- 20.7.0.0
- 20.7
- 20.6.1
- 20.6.0.2
- 20.6.0.1
- 20.6.0.0
- 20.6
- 20.5.0.0
- 20.5
- 20.4.0.2
- 20.4.0.1
- 20.4.0.0
- 20.4
- 20.3.0.1
- 20.3.0.0
- 20.3
- 20.2.1
- 20.2.0.1
- 20.2.0.0
- 20.2
- 20.1.0.3
- 20.1.0.2
- 20.1.0.1
- 20.1.0.0
- 20.1
- 20.0.1
- 20.0.0.2
- 20.0.0.1
- 20.0.0.0
- 20.0
- 19.9.1
- 19.9.0.6
- 19.9.0.5
- 19.9.0.4
- 19.9.0.3
- 19.9.0.2
- 19.9.0.1
- 19.9.0.0
- 19.9
- 19.8.1
- 19.8.0.2
- 19.8.0.1
- 19.8.0.0
- 19.8
- 19.7.0.2
- 19.7.0.1
- 19.7.0.0
- 19.7
- 19.6.0.5
- 19.6.0.4
- 19.6.0.3
- 19.6.0.2
- 19.6.0.1
- 19.6.0.0
- 19.6
- 19.5.0.3
- 19.5.0.2
- 19.5.0.1
- 19.5.0.0
- 19.5
- 19.4.1
- 19.4.0.2
- 19.4.0.1
- 19.4.0.0
- 19.4
- 19.3.0.3
- 19.3.0.2
- 19.3.0.1
- 19.3.0.0
- 19.3
- 19.2.1
- 19.2.0.2
- 19.2.0.1
- 19.2.0.0
- 19.2
- 19.1.1
- 19.1.0.3
- 19.1.0.2
- 19.1.0.1
- 19.1.0.0
- 19.1
- 19.0.0.3
- 19.0.0.2
- 19.0.0.1
- 19.0.0.0
- 19.0
- 18.9.0.2
- 18.9.0.1
- 18.9.0.0
- 18.9
- 18.8.0.4
- 18.8.0.3
- 18.8.0.2
- 18.8.0.1
- 18.8
- 18.8-jp
- 18.7.0.1
- 18.7.0.0
- 18.7
- 18.6.1
- 18.6.0.1
- 18.6.0.0
- 18.6
- 18.5.1
- 18.5.0.4
- 18.5.0.3
- 18.5.0.2
- 18.5.0.1
- 18.5.0.0
- 18.5
- 18.4.1
- 18.4.0.2
- 18.4.0.1
- 18.4.0.0
- 18.4
- 18.3.1
- 18.3.0.3
- 18.3.0.2
- 18.3.0.1
- 18.3.0.0
- 18.3
- 18.2.1
- 18.2.0.3
- 18.2.0.2
- 18.2.0.1
- 18.2.0.0
- 18.2
- 18.1.0.3
- 18.1.0.2
- 18.1.0.1
- 18.1.0.0
- 18.1
- 18.0.0.2
- 18.0.0.1
- 18.0.0.0
- 18.0
- 17.9.1
- 17.9.0.4
- 17.9.0.3
- 17.9.0.2
- 17.9.0.1
- 17.9.0.0
- 17.9
- 17.8.0.4
- 17.8.0.3
- 17.8.0.2
- 17.8.0.1
- 17.8.0.0
- 17.8
- 17.7.1
- 17.7.0.3
- 17.7.0.2
- 17.7.0.1
- 17.7.0.0
- 17.7
- 17.6.0.3
- 17.6.0.2
- 17.6.0.1
- 17.6.0.0
- 17.6
- 17.5.0.2
- 17.5.0.1
- 17.5.0.0
- 17.5
- 17.4
- 17.3
- 17.2
- 17.1
- 17.0.1
- 17.0
- 16.9
- 16.8.1
- 16.8.0.20210304
- 16.8.0.20210302
- 16.8.0.20210222
- 16.8.0.3
- 16.8.0.2
- 16.8.0.1
- 16.8.0.0
- 16.8
- 16.7.1
- 16.7.0.20210218
- 16.7.0.20210217
- 16.7.0.20210216
- 16.7.0.20210211
- 16.7.0.20210208
- 16.7.0.5
- 16.7.0.4
- 16.7.0.3
- 16.7.0.2
- 16.7.0.1
- 16.7.0.0
- 16.7
- 16.6.1
- 16.6.0.20210203
- 16.6.0.20210202
- 16.6.0.20210129
- 16.6.0.20210126
- 16.6.0.20210125
- 16.6.0.5
- 16.6.0.4
- 16.6.0.3
- 16.6.0.2
- 16.6.0.1
- 16.6.0.0
- 16.6
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import SwiftUI | ||
|
||
|
||
extension LocalizedStringKey { | ||
static let defaultBundle = Bundle(for: HomeWidgetTodayRemoteService.self) | ||
|
||
/// TODO - TODAYWIDGET - LocalizedStringKey is used as a wrapper of NSLocalizedString, in order to use synthetic keys and assign a default value | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might not be worth mentioning this as a I like the comment though explaining why it exists and the circumstances under which it could be replaced. Just not sure if |
||
/// in case of missing localization. This will need to be updated (if and) as soon as LocalizedStringKey supports default values | ||
init(_ key: String, defaultValue: String, comment: String) { | ||
self.init(NSLocalizedString(key, tableName: nil, bundle: Self.defaultBundle, value: defaultValue, comment: comment)) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is two spaces between
import
statements and the extension definition typical?