ios: fix translations on user profile page (#1134)

This commit is contained in:
Evgeny Poberezkin
2022-09-26 20:32:24 +01:00
committed by GitHub
parent 1a2efc3b4f
commit 090e54c8d8
6 changed files with 46 additions and 4 deletions
@@ -114,7 +114,7 @@ struct UserProfile: View {
}
}
func profileNameTextEdit(_ label: String, _ name: Binding<String>) -> some View {
func profileNameTextEdit(_ label: LocalizedStringKey, _ name: Binding<String>) -> some View {
TextField(label, text: name)
.textInputAutocapitalization(.never)
.disableAutocorrection(true)
@@ -122,7 +122,7 @@ struct UserProfile: View {
.padding(.leading, 28)
}
func profileNameView(_ label: String, _ name: String) -> some View {
func profileNameView(_ label: LocalizedStringKey, _ name: String) -> some View {
HStack {
Text(label)
Text(name).fontWeight(.bold)