Skip to content

Commit 123c516

Browse files
committed
docs: add fallbackLanguages
1 parent ecc0e04 commit 123c516

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

docs/de-de/configuration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,3 +401,21 @@ window.$docsify = {
401401
ext: '.md'
402402
};
403403
```
404+
405+
## fallbackLanguages
406+
407+
* type: `Array<string>`
408+
409+
List of languages that will fallback to the default language when a page is request and didn't exists for the given local.
410+
411+
Example:
412+
413+
* try to fetch the page of `/de/overview`. If this page exists, it'll be displayed
414+
* then try to fetch the default page `/overview` (depending on the default language). If this page exists, it'll be displayed
415+
* then display 404 page.
416+
417+
```js
418+
window.$docsify = {
419+
fallbackLanguages: ['fr', 'de']
420+
};
421+
```

docs/zh-cn/configuration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,21 @@ window.$docsify = {
413413
ext: '.md'
414414
};
415415
```
416+
417+
## fallbackLanguages
418+
419+
* type: `Array<string>`
420+
421+
List of languages that will fallback to the default language when a page is request and didn't exists for the given local.
422+
423+
Example:
424+
425+
* try to fetch the page of `/de/overview`. If this page exists, it'll be displayed
426+
* then try to fetch the default page `/overview` (depending on the default language). If this page exists, it'll be displayed
427+
* then display 404 page.
428+
429+
```js
430+
window.$docsify = {
431+
fallbackLanguages: ['fr', 'de']
432+
};
433+
```

0 commit comments

Comments
 (0)