mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Localizations fixes
This commit is contained in:
@@ -64,7 +64,7 @@ struct InspectorView: View {
|
||||
if let systemName {
|
||||
Image(systemName: systemName)
|
||||
}
|
||||
Text(heading.uppercased())
|
||||
Text(heading.localized().uppercased())
|
||||
.font(.footnote)
|
||||
}
|
||||
.foregroundColor(.secondary)
|
||||
@@ -72,7 +72,7 @@ struct InspectorView: View {
|
||||
|
||||
@ViewBuilder func videoDetailRow(_ detail: String, value: String) -> some View {
|
||||
HStack {
|
||||
Text(detail)
|
||||
Text(detail.localized())
|
||||
.foregroundColor(.secondary)
|
||||
Spacer()
|
||||
let value = Text(value).lineLimit(1)
|
||||
|
@@ -85,7 +85,7 @@ struct VideoActions: View {
|
||||
Image(systemName: systemImage)
|
||||
.frame(width: 20, height: 20)
|
||||
if playerActionsButtonLabelStyle.text {
|
||||
Text(name)
|
||||
Text(name.localized())
|
||||
.foregroundColor(.secondary)
|
||||
.font(.caption2)
|
||||
.allowsTightening(true)
|
||||
|
@@ -122,7 +122,7 @@ struct VideoDetailsToolbar: View {
|
||||
playerDetailsPageButtonLabelStyle.text,
|
||||
player.playerSize.width > 450
|
||||
{
|
||||
Text(tool.wrappedValue.name)
|
||||
Text(tool.wrappedValue.name.localized())
|
||||
.font(.system(size: 14).bold())
|
||||
.padding(.trailing, 4)
|
||||
.foregroundColor(.white)
|
||||
|
Reference in New Issue
Block a user