From e2748fc46cbbae0ee7caf84d92b4a84a23f5783f Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 26 Mar 2019 17:12:51 +0000 Subject: [docutmentation] Add german language support (wip) --- documentation/.vuepress/config.js | 83 ++++++++++++++++----- .../.vuepress/public/img/de/bss_screenshot.PNG | Bin 0 -> 85869 bytes 2 files changed, 63 insertions(+), 20 deletions(-) create mode 100644 documentation/.vuepress/public/img/de/bss_screenshot.PNG (limited to 'documentation/.vuepress') diff --git a/documentation/.vuepress/config.js b/documentation/.vuepress/config.js index 0a8f1b3..5a76b61 100644 --- a/documentation/.vuepress/config.js +++ b/documentation/.vuepress/config.js @@ -3,25 +3,68 @@ module.exports = { description: 'Boot Auswahl Server', themeConfig: { logo: '/img/logo-light.svg', - nav: [ - { text: 'Home', link: '/' }, - { text: 'Installation', link: '/installation/' }, - { text: 'API', link: '/api/' }, - { text: 'Webapp', link: '/webapp/' } - ], - sidebar: { - '/installation/': [ - '' - ], - '/api/': [ - '', - 'collections' - ], - '/webapp/': [ - '', - 'modules' - ] - }, - sidebarDepth: 1 + sidebarDepth: 1, + locales: { + '/': { + selectText: 'Languages', + label: 'English', + nav: [ + { text: 'Home', link: '/' }, + { text: 'Webapp', link: '/webapp/' }, + { text: 'API', link: '/api/' }, + { text: 'Installation', link: '/installation/' } + ], + sidebar: { + '/webapp/': [ + '', + 'modules' + ], + '/api/': [ + '', + 'collections' + ], + '/installation/': [ + '' + ] + }, + }, + '/de/': { + selectText: 'Sprachen', + label: 'Deutsch', + nav: [ + { text: 'Startseite', link: '/de/' }, + { text: 'Webapp', link: '/de/webapp/' }, + { text: 'API', link: '/de/api/' }, + { text: 'Installation', link: '/de/installation/' } + ], + sidebar: { + '/de/webapp/': [ + '', + 'modules' + ], + '/de/api/': [ + '', + 'collections' + ], + '/de/installation/': [ + '' + ] + }, + } + } }, + locales: { + // The key is the path for the locale to be nested under. + // As a special case, the default locale can use '/' as its path. + '/': { + lang: 'en-US', // this will be set as the lang attribute on + title: 'BAS Documentation', + description: 'Boot Auswahl Server' + }, + '/de/': { + lang: 'de-DE', + title: 'BAS Dokumentation', + description: 'Boot Auswahl Server ' + } + } } \ No newline at end of file diff --git a/documentation/.vuepress/public/img/de/bss_screenshot.PNG b/documentation/.vuepress/public/img/de/bss_screenshot.PNG new file mode 100644 index 0000000..2fb8504 Binary files /dev/null and b/documentation/.vuepress/public/img/de/bss_screenshot.PNG differ -- cgit v1.2.3-55-g7522