mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 15:17:23 +02:00
Versioning ids should be based on whether translation is enabled (#333)
* Versioning ids should be based on whether translation is enabled Ref:ff117979c6
anda5e963dba1
Tested locally on: Docusaurus Relay Test site from `npm run examples` * Prettier
This commit is contained in:
parent
250395a96a
commit
5bb062b6f0
3 changed files with 10 additions and 6 deletions
|
@ -126,8 +126,7 @@ class HeaderNav extends React.Component {
|
|||
: '';
|
||||
const versionPart =
|
||||
env.versioning.enabled && this.props.version !== 'next'
|
||||
? (this.props.language || 'en') +
|
||||
'-version-' +
|
||||
? 'version-' +
|
||||
(this.props.version || env.versioning.latestVersion) +
|
||||
'-'
|
||||
: '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue