getLocalizedString method

String getLocalizedString(
  1. SDNLocalizations i18n
)

Implementation

String getLocalizedString(SDNLocalizations i18n) {
  switch (this) {
    case GuestAccess.canJoin:
      return i18n.guestsCanJoin;
    case GuestAccess.forbidden:
      return i18n.guestsAreForbidden;
  }
}