import { Profile } from '../../api/quality-profiles';
import Suggestions from '../../components/embed-docs-modal/Suggestions';
import { DocLink } from '../../helpers/doc-links';
-import { translate } from '../../helpers/l10n';
+import { translate, translateWithParameters } from '../../helpers/l10n';
import { getRulesUrl } from '../../helpers/urls';
import { Component } from '../../types/types';
import BuiltInQualityProfileBadge from '../quality-profiles/components/BuiltInQualityProfileBadge';
<ActionCell>
<InteractiveIcon
Icon={PencilIcon}
- aria-label={translate('project_quality_profile.change_profile')}
+ aria-label={translateWithParameters(
+ 'project_quality_profile.change_profile_x',
+ profile.languageName,
+ )}
onClick={() => {
props.onOpenSetProfileModal(projectProfile);
}}
name: 'project_quality_profile.always_use_specific',
}),
buttonSave: byRole('button', { name: 'save' }),
- buttonChangeProfile: byRole('button', { name: 'project_quality_profile.change_profile' }),
htmlLanguage: byText('HTML'),
htmlProfile: byText('html profile'),
cssLanguage: byText('CSS'),
expect(ui.builtInTag.query()).not.toBeInTheDocument();
await user.click(
- htmlRow.byRole('button', { name: 'project_quality_profile.change_profile' }).get(),
+ htmlRow.byRole('button', { name: 'project_quality_profile.change_profile_x.HTML' }).get(),
);
//Opens modal to change profile
project_quality_profile.add_language_modal.no_active_rules=this profile has no active rules
project_quality_profile.add_language_modal.profile_unavailable_no_active_rules=This profile has no active rules, and cannot be used. Please enable at least 1 rule before using this profile.
project_quality_profile.add_language_modal.go_to_profile=Go to Quality Profile
-project_quality_profile.change_profile=Change profile
+project_quality_profile.change_profile_x=Change {x} profile
#------------------------------------------------------------------------------
#