Missing localizations added
This commit is contained in:
parent
e70e67d35c
commit
c6447c1899
|
@ -10,6 +10,8 @@ import Foundation
|
|||
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
||||
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||||
internal enum L10n {
|
||||
/// Smartfeeds
|
||||
internal static let smartfeedTitle = L10n.tr("Localizable", "Smartfeed_Title")
|
||||
/// A count of your smart feeds.
|
||||
internal static let smartFeedSummaryWidgetDescription = L10n.tr("Localizable", "SmartFeedSummary_Widget_Description")
|
||||
/// Your Smart Feed Summary
|
||||
|
|
|
@ -27,3 +27,6 @@
|
|||
|
||||
/* Starred Widget */
|
||||
"Starred_Widget_NoItems" = "You've not starred any artices.";
|
||||
|
||||
/* Smart Feed Summary */
|
||||
"Smartfeed_Title" = "Smartfeeds";
|
||||
|
|
|
@ -58,7 +58,7 @@ struct SmartFeedSummaryWidgetView: View {
|
|||
Spacer()
|
||||
HStack {
|
||||
Spacer()
|
||||
Text("Smartfeeds").bold().textCase(.uppercase).font(.caption2)
|
||||
Text(L10n.smartfeedTitle).bold().textCase(.uppercase).font(.caption2)
|
||||
Spacer()
|
||||
}
|
||||
}.padding()
|
||||
|
|
|
@ -86,9 +86,9 @@ struct StarredWidgetView : View {
|
|||
var inboxZero: some View {
|
||||
VStack {
|
||||
Spacer()
|
||||
Text("#StarredZero")
|
||||
.italic()
|
||||
.font(Font.system(.subheadline, design: .serif))
|
||||
Image(systemName: "checkmark.circle")
|
||||
.foregroundColor(.accentColor)
|
||||
.font(.title)
|
||||
|
||||
Spacer()
|
||||
HStack {
|
||||
|
@ -97,7 +97,7 @@ struct StarredWidgetView : View {
|
|||
.frame(width: 15, height: 15, alignment: .center)
|
||||
.cornerRadius(4)
|
||||
|
||||
Text("You've not starred any artices.")
|
||||
Text(L10n.starredWidgetNoItems)
|
||||
.font(.caption2)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
|
|
|
@ -86,9 +86,9 @@ struct TodayWidgetView : View {
|
|||
var inboxZero: some View {
|
||||
VStack {
|
||||
Spacer()
|
||||
Text("#TodayZero")
|
||||
.italic()
|
||||
.font(Font.system(.subheadline, design: .serif))
|
||||
Image(systemName: "checkmark.circle")
|
||||
.foregroundColor(.accentColor)
|
||||
.font(.title)
|
||||
|
||||
Spacer()
|
||||
HStack {
|
||||
|
@ -97,7 +97,7 @@ struct TodayWidgetView : View {
|
|||
.frame(width: 15, height: 15, alignment: .center)
|
||||
.cornerRadius(4)
|
||||
|
||||
Text("There are no recent articles to read.")
|
||||
Text(L10n.todayWidgetNoItems)
|
||||
.font(.caption2)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ struct UnreadWidgetView : View {
|
|||
}
|
||||
.padding()
|
||||
.widgetURL(WidgetDeepLink.unread.url)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,9 +85,9 @@ struct UnreadWidgetView : View {
|
|||
var inboxZero: some View {
|
||||
VStack {
|
||||
Spacer()
|
||||
Text("#UnreadZero")
|
||||
.italic()
|
||||
.font(Font.system(.subheadline, design: .serif))
|
||||
Image(systemName: "checkmark.circle")
|
||||
.foregroundColor(.accentColor)
|
||||
.font(.title)
|
||||
|
||||
Spacer()
|
||||
HStack {
|
||||
|
|
Loading…
Reference in New Issue