Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 Localize UI text "View more"
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEidinger committed Jul 29, 2021
1 parent 955be18 commit 31480bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/SAPCAI/UI/MessageView/ButtonsMessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct ButtonsMessageView: View {
self.showMoreButtons = true
}, label: {
Spacer()
Text("View more")
Text(Bundle.cai.localizedString(forKey: "View more", value: "View more", table: nil))
.font(.body)
.lineLimit(1)
.padding(EdgeInsets(top: 16, leading: 16, bottom: 16, trailing: 16))
Expand Down
2 changes: 1 addition & 1 deletion Sources/SAPCAI/UI/MessageView/ListMessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct ListMessageView: View {
self.viewModel.contentHeight += 0
self.showMoreListItems = true
}, label: {
Text("View more")
Text(Bundle.cai.localizedString(forKey: "View more", value: "View more", table: nil))
.font(.body)
.lineLimit(1)
.padding(16)
Expand Down
3 changes: 3 additions & 0 deletions Sources/SAPCAI/_localization/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
/* XMSG: Error message for conversation not found */
"error.conversationNotFound" = "Conversation is not found. Please ask me again";

/* XBUT: Text for button to reveal more information in a list */
"View more" = "View more";

0 comments on commit 31480bf

Please sign in to comment.