Add language to the version part

just like we did with the language part

otherwise we get `-version-....` ids with no prefixes
This commit is contained in:
Joel Marcey 2017-12-19 17:51:03 -08:00
parent a5e963dba1
commit ff117979c6

View file

@ -126,7 +126,8 @@ class HeaderNav extends React.Component {
: '';
const versionPart =
env.versioning.enabled && this.props.version !== 'next'
? '-version-' +
? (this.props.language || 'en') +
'-version-' +
(this.props.version || env.versioning.latestVersion) +
'-'
: '';