mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-19 20:17:06 +02:00
fix: previous / next page buttons label (#1079)
This commit is contained in:
parent
62b5895ef8
commit
e788dc4122
1 changed files with 2 additions and 2 deletions
|
@ -60,12 +60,12 @@ class DocsLayout extends React.Component {
|
|||
const hasOnPageNav = this.props.config.onPageNav === 'separate';
|
||||
|
||||
const previousTitle =
|
||||
idx(i18n, ['localized-strings', metadata.previous_id]) ||
|
||||
idx(i18n, ['localized-strings', 'docs', metadata.previous_id, 'title']) ||
|
||||
idx(i18n, ['localized-strings', 'previous']) ||
|
||||
metadata.previous_title ||
|
||||
'Previous';
|
||||
const nextTitle =
|
||||
idx(i18n, ['localized-strings', metadata.next_id]) ||
|
||||
idx(i18n, ['localized-strings', 'docs', metadata.next_id, 'title']) ||
|
||||
idx(i18n, ['localized-strings', 'next']) ||
|
||||
metadata.next_title ||
|
||||
'Next';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue