Localize export text

This commit is contained in:
Jackson Harper
2023-01-31 20:16:08 +08:00
parent c76c90e005
commit a6cda115b3
5 changed files with 5 additions and 2 deletions

View File

@ -44,7 +44,7 @@ struct HighlightsListCard: View {
)
Button(
action: { showShareView = true },
label: { Label("Export", systemImage: "square.and.arrow.up") }
label: { Label(LocalText.exportGeneric, systemImage: "square.and.arrow.up") }
)
Button(
action: onDeleteHighlight,

View File

@ -98,7 +98,7 @@ struct HighlightsListView: View {
content: {
Button(
action: { showShareView = true },
label: { Label("Export", systemImage: "square.and.arrow.up") }
label: { Label(LocalText.exportGeneric, systemImage: "square.and.arrow.up") }
)
},
label: {

View File

@ -172,6 +172,7 @@ public enum LocalText {
public static let logoutGeneric = localText(key: "logoutGeneric")
public static let doneGeneric = localText(key: "doneGeneric")
public static let cancelGeneric = localText(key: "cancelGeneric")
public static let exportGeneric = localText(key: "exportGeneric")
public static let inboxGeneric = localText(key: "inboxGeneric")
public static let readLaterGeneric = localText(key: "readLaterGeneric")
public static let newslettersGeneric = localText(key: "newslettersGeneric")

View File

@ -176,6 +176,7 @@
"logoutGeneric" = "Logout";
"doneGeneric" = "Done";
"cancelGeneric" = "Cancel";
"exportGeneric" = "Export";
"inboxGeneric" = "Inbox";
"readLaterGeneric" = "Read Later";
"newslettersGeneric" = "Newsletters";

View File

@ -176,6 +176,7 @@
"logoutGeneric" = "退出登录";
"doneGeneric" = "完成";
"cancelGeneric" = "取消";
"exportGeneric" = "导出"
"inboxGeneric" = "收集箱";
"readLaterGeneric" = "稍后阅读";
"newslettersGeneric" = "新闻稿件";