Skip to content

Commit

Permalink
refactor: add Settings page some localizable
Browse files Browse the repository at this point in the history
  • Loading branch information
liyafly committed Jan 7, 2024
1 parent d3bb4bd commit 7b30e19
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
24 changes: 21 additions & 3 deletions Easydict/App/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -1674,29 +1674,47 @@
},
"menu_selectWord_Translate" : {
"localizations" : {
"zh-Hans" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Select Translate"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "划词翻译"
}
}
}
},
"menu_show_mini_window" : {
"localizations" : {
"zh-Hans" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Show Mini Window"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "显示迷你窗口"
}
}
}
},
"menu_silent_screenshot_OCR" : {
"localizations" : {
"zh-Hans" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Silent Screenshot OCR"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "静默截图 OCR"
}
}
Expand Down
6 changes: 3 additions & 3 deletions Easydict/NewApp/View/MenuItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ struct MenuItemView: View {
}
}

@available(macOS 13, *)
#Preview {
@available(macOS 13, *)
#Preview {
MenuItemView()
}
}

0 comments on commit 7b30e19

Please sign in to comment.