: ((navigationTreeSonarQube as any).default as DocNavigationItem[]); | : ((navigationTreeSonarQube as any).default as DocNavigationItem[]); | ||||
const { splat = '' } = this.props.params; | const { splat = '' } = this.props.params; | ||||
const page = this.pages.find(p => p.url === '/' + splat); | const page = this.pages.find(p => p.url === '/' + splat); | ||||
const mainTitle = translate('documentation.page_title'); | |||||
const mainTitle = translate( | |||||
'documentation.page_title', | |||||
isSonarCloud() ? 'sonarcloud' : 'sonarqube' | |||||
); | |||||
if (!page) { | if (!page) { | ||||
return ( | return ( |
<HelmetWrapper | <HelmetWrapper | ||||
defer={true} | defer={true} | ||||
encodeSpecialCharacters={true} | encodeSpecialCharacters={true} | ||||
title="Lorem | documentation.page_title" | |||||
title="Lorem | documentation.page_title.sonarcloud" | |||||
/> | /> | ||||
<ScreenPositionHelper | <ScreenPositionHelper | ||||
className="layout-page-side-outer" | className="layout-page-side-outer" | ||||
<HelmetWrapper | <HelmetWrapper | ||||
defer={true} | defer={true} | ||||
encodeSpecialCharacters={true} | encodeSpecialCharacters={true} | ||||
title="Lorem | documentation.page_title" | |||||
title="Lorem | documentation.page_title.sonarqube" | |||||
> | > | ||||
<meta | <meta | ||||
content="noindex nofollow" | content="noindex nofollow" | ||||
<HelmetWrapper | <HelmetWrapper | ||||
defer={true} | defer={true} | ||||
encodeSpecialCharacters={true} | encodeSpecialCharacters={true} | ||||
title="documentation.page_title" | |||||
title="documentation.page_title.sonarcloud" | |||||
> | > | ||||
<meta | <meta | ||||
content="noindex nofollow" | content="noindex nofollow" |
# | # | ||||
#------------------------------------------------------------------------------ | #------------------------------------------------------------------------------ | ||||
documentation.page=Documentation | documentation.page=Documentation | ||||
documentation.page_title=SonarCloud Docs | |||||
documentation.page_title.sonarcloud=SonarCloud Docs | |||||
documentation.page_title.sonarqube=SonarQube Docs | |||||
documentation.on_this_page=On this page | documentation.on_this_page=On this page | ||||
documentation.skip_to_nav=Skip to documentation navigation | documentation.skip_to_nav=Skip to documentation navigation | ||||