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( Button(
action: { showShareView = true }, action: { showShareView = true },
label: { Label("Export", systemImage: "square.and.arrow.up") } label: { Label(LocalText.exportGeneric, systemImage: "square.and.arrow.up") }
) )
Button( Button(
action: onDeleteHighlight, action: onDeleteHighlight,

View File

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

View File

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

View File

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

View File

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