Fix localization issues, import translations, and add Spanish (Spain), Vietnamese, and Portuguese (Brazil)

This commit is contained in:
2023-03-21 06:53:57 -06:00
parent 98f0b2f2d2
commit fd596241a2
44 changed files with 1052 additions and 89 deletions

View File

@@ -28,7 +28,7 @@ struct TranslateView: View {
func Translated(lang: String, artifacts: NoteArtifacts) -> some View {
return Group {
Button(NSLocalizedString("Translated from \(lang)", comment: "Button to indicate that the note has been translated from a different language.")) {
Button(String(format: NSLocalizedString("Translated from %@", comment: "Button to indicate that the note has been translated from a different language."), lang)) {
show_translated_note = false
}
.translate_button_style()
@@ -38,7 +38,7 @@ struct TranslateView: View {
}
func CheckingStatus(lang: String) -> some View {
return Button(NSLocalizedString("Translating from \(lang)...", comment: "Button to indicate that the note is in the process of being translated from a different language.")) {
return Button(String(format: NSLocalizedString("Translating from %@...", comment: "Button to indicate that the note is in the process of being translated from a different language."), lang)) {
show_translated_note = false
}
.translate_button_style()