mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-12 14:28:09 +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 hasOnPageNav = this.props.config.onPageNav === 'separate';
|
||||||
|
|
||||||
const previousTitle =
|
const previousTitle =
|
||||||
idx(i18n, ['localized-strings', metadata.previous_id]) ||
|
idx(i18n, ['localized-strings', 'docs', metadata.previous_id, 'title']) ||
|
||||||
idx(i18n, ['localized-strings', 'previous']) ||
|
idx(i18n, ['localized-strings', 'previous']) ||
|
||||||
metadata.previous_title ||
|
metadata.previous_title ||
|
||||||
'Previous';
|
'Previous';
|
||||||
const nextTitle =
|
const nextTitle =
|
||||||
idx(i18n, ['localized-strings', metadata.next_id]) ||
|
idx(i18n, ['localized-strings', 'docs', metadata.next_id, 'title']) ||
|
||||||
idx(i18n, ['localized-strings', 'next']) ||
|
idx(i18n, ['localized-strings', 'next']) ||
|
||||||
metadata.next_title ||
|
metadata.next_title ||
|
||||||
'Next';
|
'Next';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue