mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
Change sidebar_title to sidebar_label
This commit is contained in:
parent
18bcc59fd0
commit
c8e4dc343c
2 changed files with 4 additions and 4 deletions
|
@ -71,7 +71,7 @@ class SideNav extends React.Component {
|
|||
getLocalizedString(metadata) {
|
||||
let localizedString;
|
||||
const i18n = translation[this.props.language];
|
||||
const sbTitle = metadata.sidebar_title;
|
||||
const sbTitle = metadata.sidebar_label;
|
||||
|
||||
if (sbTitle) {
|
||||
localizedString = i18n
|
||||
|
|
|
@ -50,9 +50,9 @@ function execute() {
|
|||
|
||||
translations["localized-strings"][metadata.localized_id] = metadata.title;
|
||||
|
||||
if (metadata.sidebar_title) {
|
||||
translations["localized-strings"][metadata.sidebar_title] =
|
||||
metadata.sidebar_title;
|
||||
if (metadata.sidebar_label) {
|
||||
translations["localized-strings"][metadata.sidebar_label] =
|
||||
metadata.sidebar_label;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue