mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use strings file for 'clubs' and 'push notifications'
This commit is contained in:
parent
adf0604c7a
commit
9722305b7d
6 changed files with 10 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ struct ProfileView: View {
|
|||
}
|
||||
|
||||
NavigationLink(destination: GroupsView()) {
|
||||
Text("Clubs")
|
||||
Text(LocalText.clubsGeneric)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ struct ProfileView: View {
|
|||
#if os(iOS)
|
||||
Section {
|
||||
NavigationLink(destination: PushNotificationSettingsView()) {
|
||||
Text("Push Notifications")
|
||||
Text(LocalText.pushNotificationsGeneric)
|
||||
}
|
||||
NavigationLink(destination: TextToSpeechView()) {
|
||||
Text(LocalText.textToSpeechGeneric)
|
||||
|
|
|
|||
|
|
@ -91,6 +91,6 @@ struct PushNotificationSettingsView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Push Notifications")
|
||||
.navigationTitle(LocalText.pushNotificationsGeneric)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ struct GroupsView: View {
|
|||
}
|
||||
}
|
||||
.task { await viewModel.loadGroups(dataService: dataService) }
|
||||
.navigationTitle("Clubs")
|
||||
.navigationTitle(LocalText.clubsGeneric)
|
||||
}
|
||||
|
||||
private var innerBody: some View {
|
||||
|
|
|
|||
|
|
@ -42,4 +42,6 @@ public enum LocalText {
|
|||
public static let newslettersDescription = localText(key: "newsletters.description")
|
||||
public static let labelsPurposeDescription = localText(key: "labels.purpose.description")
|
||||
public static let noCurrentSubscriptionsMessage = localText(key: "no.current.subscriptions.message")
|
||||
public static let clubsGeneric = localText(key: "clubs.generic")
|
||||
public static let pushNotificationsGeneric = localText(key: "pushNotifications.generic")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@
|
|||
"newsletters.description" = "Add PDFs to your library, or subscribe to newsletters using an Omnivore email address.";
|
||||
"labels.purpose.description" = "Use labels to create curated collections of links.";
|
||||
"no.current.subscriptions.message" = "You have no current Subscriptions.";
|
||||
"clubs.generic" = "Clubs";
|
||||
"pushNotifications.generic" = "Push Notifications";
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@
|
|||
"newsletters.description" = "将 PDF 添加到您的资料库,或使用 Omnivore 电子邮件地址订阅新闻稿件。";
|
||||
"labels.purpose.description" = "使用标签创建精选的链接集合。";
|
||||
"no.current.subscriptions.message" = "您当前没有任何订阅。";
|
||||
"clubs.generic" = "读书俱乐部";
|
||||
"pushNotifications.generic" = "推送通知";
|
||||
|
|
|
|||
Loading…
Reference in a new issue