orgRoleGroupLabel function

String orgRoleGroupLabel(
  1. AppLocalizations l10n,
  2. String role
)

Localized all-caps plural role label used for the member-list group headers (OWNERS, ADMINS, …).

Kept as its own key set rather than orgRoleLabel(...) + 'S' because pluralization is not a suffix in every locale.

Implementation

String orgRoleGroupLabel(AppLocalizations l10n, String role) => switch (role) {
  'owner' => l10n.orgRoleGroupOwners,
  'admin' => l10n.orgRoleGroupAdmins,
  'manager' => l10n.orgRoleGroupManagers,
  'member' => l10n.orgRoleGroupMembers,
  _ => '${role.toUpperCase()}S',
};