getLocalizedString method

String getLocalizedString(
  1. SDNLocalizations i18n
)

Implementation

String getLocalizedString(SDNLocalizations i18n) {
  switch (this) {
    case HistoryVisibility.invited:
      return i18n.fromTheInvitation;
    case HistoryVisibility.joined:
      return i18n.fromJoining;
    case HistoryVisibility.shared:
      return i18n.visibleForAllParticipants;
    case HistoryVisibility.worldReadable:
      return i18n.visibleForEveryone;
  }
}