File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff 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+ ```
Original file line number Diff line number Diff 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+ ```
You can’t perform that action at this time.
0 commit comments