Skip to content

revert of i18n #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
'/': {
Expand Down
2 changes: 0 additions & 2 deletions src/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ export default ({
},
router
)
/** Customized api key for weglot */
Vue.prototype.$weglotApiKey = "wg_30067291c88213842d0e79e66af4ff9e2"
}
77 changes: 0 additions & 77 deletions src/.vuepress/theme/components/PageHeader.vue

This file was deleted.

5 changes: 1 addition & 4 deletions src/.vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
<template>
<div>
<ParentLayout>
<template #sidebar-top><PageHeader /></template>
<template #page-bottom><PageFooter /></template>
</ParentLayout>
</div>
</template>

<script>
import PageFooter from "@theme/components/PageFooter.vue";
import PageHeader from "@theme/components/PageHeader.vue";
import ParentLayout from "@parent-theme/layouts/Layout.vue";

export default {
components: {
ParentLayout,
PageFooter,
PageHeader
PageFooter
},
};
</script>
2 changes: 1 addition & 1 deletion src/misc/write-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Custom title example

### Emoji

You can use any of supported <GitHubRepo id="markdown-it/markdown-it-emoji/blob/master/lib/data/full.json" desc="supported emoji" /> by markdown-it project.
You can use any of supported <GitHubRepo id="markdown-it/markdown-it-emoji/blob/master/lib/data/full.js" desc="supported emoji" /> by markdown-it project.


:tada: :grinning: :rofl: :scream: :heart: :pray:
Expand Down