Localise content

This commit is contained in:
Alfonso Grillo
2022-10-26 12:44:49 +02:00
parent 98efc014c7
commit 0798b262cf
4 changed files with 63 additions and 3 deletions
@@ -98,3 +98,38 @@ class UserSessionOverviewViewModel: UserSessionOverviewViewModelType, UserSessio
}
}
}
extension UserSessionOverviewViewState {
var bottomSheetTitle: String {
cardViewData.verificationState.bottomSheetTitle
}
var bottomSheetDescription: String {
cardViewData.verificationState.bottomSheetDescription
}
}
#warning("AG: add missing localisations")
private extension UserSessionInfo.VerificationState {
var bottomSheetTitle: String {
switch self {
case .unknown:
return "TODO_TITLE"
case .unverified:
return VectorL10n.userSessionUnverifiedSessionTitle
case .verified:
return VectorL10n.userSessionVerifiedSessionTitle
}
}
var bottomSheetDescription: String {
switch self {
case .unknown:
return "TODO_DESCRIPTION"
case .unverified:
return VectorL10n.userSessionUnverifiedSessionDescription
case .verified:
return VectorL10n.userSessionVerifiedSessionDescription
}
}
}