|
81 | 81 | <script> |
82 | 82 | // Set html "lang" attribute based on URL |
83 | 83 | (function () { |
84 | | - const lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//); |
| 84 | + const lang = location.hash.match(/#\/(zh-cn)\//); |
85 | 85 |
|
86 | 86 | if (lang) { |
87 | 87 | document.documentElement.setAttribute('lang', lang[1]); |
|
102 | 102 | '.*?/changelog': |
103 | 103 | 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md', |
104 | 104 | '/.*/_navbar.md': '/_navbar.md', |
105 | | - '/es/(.*)': |
106 | | - 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1', |
107 | | - '/de-de/(.*)': |
108 | | - 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1', |
109 | | - '/ru-ru/(.*)': |
110 | | - 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', |
111 | 105 | '/zh-cn/(.*)': |
112 | 106 | 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', |
113 | 107 | }, |
|
129 | 123 | }, |
130 | 124 | name: 'docsify', |
131 | 125 | nameLink: { |
132 | | - '/es/': '#/es/', |
133 | | - '/de-de/': '#/de-de/', |
134 | | - '/ru-ru/': '#/ru-ru/', |
135 | 126 | '/zh-cn/': '#/zh-cn/', |
136 | 127 | '/': '#/', |
137 | 128 | }, |
138 | 129 | search: { |
139 | 130 | // insertAfter: '.app-name', |
140 | 131 | // insertBefore: '.sidebar-nav', |
141 | 132 | noData: { |
142 | | - '/es/': '¡No hay resultados!', |
143 | | - '/de-de/': 'Keine Ergebnisse!', |
144 | | - '/ru-ru/': 'Никаких результатов!', |
145 | 133 | '/zh-cn/': '没有结果!', |
146 | 134 | '/': 'No results!', |
147 | 135 | }, |
148 | 136 | paths: 'auto', |
149 | 137 | placeholder: { |
150 | | - '/es/': 'Buscar', |
151 | | - '/de-de/': 'Suche', |
152 | | - '/ru-ru/': 'Поиск', |
153 | 138 | '/zh-cn/': '搜索', |
154 | 139 | '/': 'Search', |
155 | 140 | }, |
156 | | - pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn'], |
| 141 | + pathNamespaces: ['/zh-cn'], |
157 | 142 | }, |
158 | 143 | skipLink: { |
159 | | - '/es/': 'Saltar al contenido principal', |
160 | | - '/de-de/': 'Ga naar de hoofdinhoud', |
161 | | - '/ru-ru/': 'Перейти к основному содержанию', |
162 | 144 | '/zh-cn/': '跳到主要内容', |
163 | 145 | }, |
164 | 146 | vueComponents: { |
|
0 commit comments