mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
Use title of previous and next if no i18n
This commit is contained in:
parent
78bd09dec3
commit
429ffda351
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class DocsLayout extends React.Component {
|
||||||
"localized-strings"
|
"localized-strings"
|
||||||
]["previous"] ||
|
]["previous"] ||
|
||||||
"Previous"
|
"Previous"
|
||||||
: metadata.previous_id || "Previous"
|
: metadata[metadata.previous_id].title || "Previous"
|
||||||
}
|
}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
@ -84,7 +84,7 @@ class DocsLayout extends React.Component {
|
||||||
"localized-strings"
|
"localized-strings"
|
||||||
]["next"] ||
|
]["next"] ||
|
||||||
"Next"
|
"Next"
|
||||||
: metadata.next_id || "Next"
|
: metadata[metadata.next_id].title || "Next"
|
||||||
}{" "}
|
}{" "}
|
||||||
→
|
→
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue