Prevent accidental translation of role name (#3127)
This commit is contained in:
parent
c9ee2608ea
commit
14e6b69170
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ export const ViewHeader = ({
|
|||
helpTextKey,
|
||||
isReadOnly = false,
|
||||
}: ViewHeaderProps) => {
|
||||
const { t } = useTranslation();
|
||||
const { t, i18n } = useTranslation();
|
||||
const { enabled } = useHelp();
|
||||
const [isDropdownOpen, setDropdownOpen] = useState(false);
|
||||
const [isLowerDropdownOpen, setIsLowerDropdownOpen] = useState(false);
|
||||
|
@ -95,7 +95,7 @@ export const ViewHeader = ({
|
|||
<LevelItem>
|
||||
<TextContent className="pf-u-mr-sm">
|
||||
<Text className={className} component="h1">
|
||||
{t(titleKey)}
|
||||
{i18n.exists(titleKey) ? t(titleKey) : titleKey}
|
||||
</Text>
|
||||
</TextContent>
|
||||
</LevelItem>
|
||||
|
|
Loading…
Reference in a new issue