mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +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"
|
||||
]["previous"] ||
|
||||
"Previous"
|
||||
: metadata.previous_id || "Previous"
|
||||
: metadata[metadata.previous_id].title || "Previous"
|
||||
}
|
||||
</a>
|
||||
)}
|
||||
|
@ -84,7 +84,7 @@ class DocsLayout extends React.Component {
|
|||
"localized-strings"
|
||||
]["next"] ||
|
||||
"Next"
|
||||
: metadata.next_id || "Next"
|
||||
: metadata[metadata.next_id].title || "Next"
|
||||
}{" "}
|
||||
→
|
||||
</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue