Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
33 строки
2.1 KiB
TypeScript
33 строки
2.1 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {MattermostFeatures} from './constants';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
export function mapFeatureIdToTranslation(id: string, formatMessage: Function): string {
|
|
switch (id) {
|
|
case MattermostFeatures.GUEST_ACCOUNTS:
|
|
return formatMessage({id: 'webapp.mattermost.feature.guest_accounts', defaultMessage: 'Guest Accounts'});
|
|
case MattermostFeatures.CUSTOM_USER_GROUPS:
|
|
return formatMessage({id: 'webapp.mattermost.feature.custom_user_groups', defaultMessage: 'Custom User groups'});
|
|
case MattermostFeatures.CREATE_MULTIPLE_TEAMS:
|
|
return formatMessage({id: 'webapp.mattermost.feature.create_multiple_teams', defaultMessage: 'Create Multiple Teams'});
|
|
case MattermostFeatures.START_CALL:
|
|
return formatMessage({id: 'webapp.mattermost.feature.start_call', defaultMessage: 'Start call'});
|
|
case MattermostFeatures.PLAYBOOKS_RETRO:
|
|
return formatMessage({id: 'webapp.mattermost.feature.playbooks_retro', defaultMessage: 'Playbooks Retrospective'});
|
|
case MattermostFeatures.UNLIMITED_MESSAGES:
|
|
return formatMessage({id: 'webapp.mattermost.feature.unlimited_messages', defaultMessage: 'Unlimited Messages'});
|
|
case MattermostFeatures.UNLIMITED_FILE_STORAGE:
|
|
return formatMessage({id: 'webapp.mattermost.feature.unlimited_file_storage', defaultMessage: 'Unlimited File Storage'});
|
|
case MattermostFeatures.ALL_PROFESSIONAL_FEATURES:
|
|
return formatMessage({id: 'webapp.mattermost.feature.all_professional', defaultMessage: 'All Professional features'});
|
|
case MattermostFeatures.ALL_ENTERPRISE_FEATURES:
|
|
return formatMessage({id: 'webapp.mattermost.feature.all_enterprise', defaultMessage: 'All Enterprise features'});
|
|
case MattermostFeatures.UPGRADE_DOWNGRADED_WORKSPACE:
|
|
return formatMessage({id: 'webapp.mattermost.feature.upgrade_downgraded_workspace', defaultMessage: 'Revert the workspace to a paid plan'});
|
|
default:
|
|
return '';
|
|
}
|
|
}
|