From 2a1396b6ee209e3709aae7c057523ff51cbe4a18 Mon Sep 17 00:00:00 2001 From: PeterPetrik Date: Wed, 6 Dec 2023 16:01:51 +0100 Subject: [PATCH 1/2] revert of i18n --- README.md | 7 +- src/.vuepress/config.js | 1 - src/.vuepress/enhanceApp.js | 2 - src/.vuepress/theme/components/PageHeader.vue | 77 ------------------- src/.vuepress/theme/layouts/Layout.vue | 5 +- 5 files changed, 2 insertions(+), 90 deletions(-) delete mode 100644 src/.vuepress/theme/components/PageHeader.vue diff --git a/README.md b/README.md index 0b4e8813..13df4b6a 100644 --- a/README.md +++ b/README.md @@ -46,12 +46,7 @@ yarn dev ## Translations -To develop translations, you can switch to different language by: -- open JavaScript console in browser -- execute `Weglot.switchTo('de')` -- now you should see banner to switch to english in sidebar and all texts translated - -To change translated text, you need to login to Weglot and modify it there. +At the moment we do not support translations, see https://github.com/MerginMaps/docs/issues/133 ## Static generation (for deployments) diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index 97bc39c4..91167800 100755 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -32,7 +32,6 @@ module.exports = { ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }], ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }], ['link', { rel: 'icon', href: '/favicon.ico' }], - ['script', { type: 'text/javascript', src: 'https://cdn.weglot.com/weglot.min.js'}], ], locales: { '/': { diff --git a/src/.vuepress/enhanceApp.js b/src/.vuepress/enhanceApp.js index e54fba85..4ea7e7c5 100755 --- a/src/.vuepress/enhanceApp.js +++ b/src/.vuepress/enhanceApp.js @@ -27,6 +27,4 @@ export default ({ }, router ) - /** Customized api key for weglot */ - Vue.prototype.$weglotApiKey = "wg_30067291c88213842d0e79e66af4ff9e2" } diff --git a/src/.vuepress/theme/components/PageHeader.vue b/src/.vuepress/theme/components/PageHeader.vue deleted file mode 100644 index 126e7ebd..00000000 --- a/src/.vuepress/theme/components/PageHeader.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - - diff --git a/src/.vuepress/theme/layouts/Layout.vue b/src/.vuepress/theme/layouts/Layout.vue index ad64d0d7..25718dac 100644 --- a/src/.vuepress/theme/layouts/Layout.vue +++ b/src/.vuepress/theme/layouts/Layout.vue @@ -1,7 +1,6 @@