Fix localization issues and export strings for translation

This commit is contained in:
2023-07-09 15:12:35 -04:00
parent 83ef50586a
commit fcd7d2beab
10 changed files with 202 additions and 101 deletions

View File

@@ -44,7 +44,8 @@ struct TranslateView: View {
func TranslatedView(lang: String?, artifacts: NoteArtifacts) -> some View {
return VStack(alignment: .leading) {
Text(String(format: NSLocalizedString("Translated from %@", comment: "Button to indicate that the note has been translated from a different language."), lang ?? "ja"))
let translatedFromLanguageString = String(format: NSLocalizedString("Translated from %@", comment: "Button to indicate that the note has been translated from a different language."), lang ?? "ja")
Text(translatedFromLanguageString)
.foregroundColor(.gray)
.font(.footnote)
.padding([.top, .bottom], 10)