1
0
Fork 0
forked from forks/qmk_firmware

Add yet another dictionary for the QMK Firmware docs sidebar heading (#7504)

This commit is contained in:
fauxpark 2019-11-29 09:14:04 +11:00 committed by Joel Challis
parent f9521ffa21
commit 7164e8eeb5
2 changed files with 17 additions and 2 deletions

View file

@ -29,7 +29,16 @@
},
basePath: '/',
name: 'QMK Firmware',
nameLink: '/',
nameLink: {
'/de/': '/#/de/',
'/es/': '/#/es/',
'/fr-fr/': '/#/fr-fr/',
'/he-il/': '/#/he-il/',
'/ja/': '/#/ja/',
'/ru-ru/': '/#/ru-ru/',
'/zh-cn/': '/#/zh-cn/',
'/': '/#/'
},
repo: 'qmk/qmk_firmware',
loadSidebar: '_summary.md',
loadNavbar: '_langs.md',

View file

@ -32,6 +32,12 @@ Once you've finished translating a new language, you'll also need to modify the
'/zh-cn/': '没有结果!',
```
The `nameLink` object, for setting the "QMK Firmware" heading link in the sidebar, must also be added to:
```js
'/zh-cn/': '/#/zh-cn/',
```
And make sure to add the language folder in the `fallbackLanguages` list, so it will properly fall back to English instead of 404ing:
```js