Skip to content

Commit

Permalink
Merge pull request #1686 from planetary-social/bdm/more-strings
Browse files Browse the repository at this point in the history
minor strings simplifications
  • Loading branch information
joshuatbrown authored Nov 25, 2024
2 parents 6b502f1 + 7cfa9da commit 8a2e975
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix tapping follower notification not opening follower profile. [#11](https://github.com/verse-pbc/issues/issues/11)

### Internal Changes
- minor strings simplifications

## [1.0.1] - 2024-10-28Z

Expand Down
2 changes: 1 addition & 1 deletion Nos/Views/Home/HomeFeedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct HomeFeedView: View {
} label: {
Image(systemName: "line.3.horizontal.decrease.circle")
.foregroundStyle(Color.secondaryTxt)
.accessibilityLabel(Text("filter"))
.accessibilityLabel("filter")
}
.frame(minWidth: 40, minHeight: 40)
}
Expand Down
4 changes: 2 additions & 2 deletions Nos/Views/NoteComposer/ComposerActionBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct ComposerActionBar: View {
.frame(minWidth: 44, minHeight: 44)
}
.padding(.leading, 8)
.accessibilityLabel(Text("attachMedia"))
.accessibilityLabel("attachMedia")
}

/// Expiration Time
Expand All @@ -135,7 +135,7 @@ struct ComposerActionBar: View {
self.expirationTime = $0 ? option.timeInterval : nil
})
)
.accessibilityLabel(Text("expirationDate"))
.accessibilityLabel("expirationDate")
.padding(12)
} else {
Button {
Expand Down
2 changes: 1 addition & 1 deletion Nos/Views/NoteComposer/NoteComposer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct NoteComposer: View {
}
}
.background(Color.appBg)
.navigationBarTitle(String(localized: "newNote"), displayMode: .inline)
.navigationBarTitle("newNote", displayMode: .inline)
.toolbarBackground(.visible, for: .navigationBar)
.toolbarBackground(Color.cardBgBottom, for: .navigationBar)
.toolbar {
Expand Down
2 changes: 1 addition & 1 deletion Nos/Views/Onboarding/OnboardingLoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct OnboardingLoginView: View {
VStack {
Form {
Section {
SecureField(String(localized: "privateKeyPlaceholder"), text: $privateKeyString)
SecureField("privateKeyPlaceholder", text: $privateKeyString)
.foregroundColor(.primaryTxt)
} header: {
Text("pasteYourSecretKey")
Expand Down
8 changes: 4 additions & 4 deletions Nos/Views/Settings/DeleteConfirmationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ struct DeleteConfirmationView: View {
/// Creates the title and message view for the delete confirmation.
private func titleMessageView() -> some View {
VStack(spacing: 0) {
Text(String(localized: "deleteAccount"))
Text("deleteAccount")
.font(.headline)
.fontWeight(.bold)
.padding(.bottom, 10)
.padding(.top, 18)

Text(String(localized: "deleteAccountMessage"))
Text("deleteAccountMessage")
.font(.footnote)
.fixedSize(horizontal: false, vertical: true)
.multilineTextAlignment(.center)
Expand Down Expand Up @@ -101,7 +101,7 @@ struct DeleteConfirmationView: View {
onCancel: @escaping () -> Void
) -> some View {
HStack {
Button(String(localized: "cancel")) {
Button("cancel") {
onCancel()
}
.frame(maxWidth: .infinity)
Expand All @@ -111,7 +111,7 @@ struct DeleteConfirmationView: View {
.frame(width: 1, height: 50)
.background(Color.actionSheetDivider)

Button(String(localized: "delete")) {
Button("delete") {
onDelete()
}
.frame(maxWidth: .infinity)
Expand Down
2 changes: 1 addition & 1 deletion Nos/Views/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct SettingsView: View {
.foregroundColor(.primaryTxt)
.font(.clarity(.regular, textStyle: .body))
.lineLimit(1)
.accessibilityLabel(Text("privateKey"))
.accessibilityLabel("privateKey")

Spacer()

Expand Down

0 comments on commit 8a2e975

Please sign in to comment.