Use strings from Localazy (#718)

* Adopt strings from Localazy.

* Remove all old Android strings.

* Disable german snapshot tests for now.

* Rebase and add latest strings.
This commit is contained in:
Doug
2023-03-27 18:18:59 +01:00
committed by GitHub
parent 8daa23b27a
commit 2b753b1135
215 changed files with 1911 additions and 118672 deletions
@@ -75,7 +75,7 @@ final class ReportContentCoordinator: CoordinatorProtocol {
parameters.userIndicatorController?.submitIndicator(
UserIndicator(id: Self.loadingIndicatorIdentifier,
type: .modal,
title: ElementL10n.sending,
title: L10n.commonSending,
persistent: true)
)
}
@@ -33,7 +33,7 @@ struct ReportContentScreen: View {
}
.scrollDismissesKeyboard(.immediately)
.background(Color.element.formBackground.ignoresSafeArea())
.navigationTitle(ElementL10n.reportContent)
.navigationTitle(L10n.actionReportContent)
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
.interactiveDismissDisabled()
@@ -48,25 +48,25 @@ struct ReportContentScreen: View {
}
private var infoText: some View {
Text(ElementL10n.reportContentInfo)
Text(L10n.reportContentExplanation)
.font(.element.body)
.foregroundColor(Color.element.primaryContent)
}
private var reasonTextEditor: some View {
FormTextEditor(text: $context.reasonText, placeholder: ElementL10n.reportContentCustomHint)
FormTextEditor(text: $context.reasonText, placeholder: L10n.reportContentHint)
}
@ToolbarContentBuilder
private var toolbar: some ToolbarContent {
ToolbarItem(placement: .cancellationAction) {
Button(ElementL10n.actionCancel) {
Button(L10n.actionCancel) {
context.send(viewAction: .cancel)
}
}
ToolbarItem(placement: .confirmationAction) {
Button(ElementL10n.actionSend) {
Button(L10n.actionSend) {
context.send(viewAction: .submit)
}
}