expect(
await screen.findByRole('heading', { level: 3, name: 'Awsome java rule' })
).toBeInTheDocument();
+ expect(document.title).toEqual('coding_rule.page.Java.Awsome java rule');
expect(screen.getByText('Why')).toBeInTheDocument();
expect(screen.getByText('Because')).toBeInTheDocument();
});
import '../../../components/search-navigator.css';
import { isInput, isShortcut } from '../../../helpers/keyboardEventHelpers';
import { KeyboardKeys } from '../../../helpers/keycodes';
-import { translate } from '../../../helpers/l10n';
+import { translate, translateWithParameters } from '../../../helpers/l10n';
import {
addSideBarClass,
addWhitePageClass,
return (
<>
<Suggestions suggestions="coding_rules" />
- <Helmet defer={false} title={translate('coding_rules.page')}>
+ <Helmet
+ defer={false}
+ title={
+ openRule
+ ? translateWithParameters('coding_rule.page', openRule.langName, openRule.name)
+ : translate('coding_rules.page')
+ }
+ >
<meta content="noindex" name="robots" />
</Helmet>
<div className="layout-page" id="coding-rules-page">
#------------------------------------------------------------------------------
coding_rules.page=Rules
+coding_rule.page={0} rule: {1}
global_permissions.page=Global Permissions
global_permissions.page.description=Grant and revoke permissions to make changes at the global level. These permissions include editing Quality Profiles, executing analysis, and performing global system administration.
roles.page=Project Permissions