diff --git a/assets/sass/_sub.scss b/assets/sass/_sub.scss index 3ea269d..34ba80b 100644 --- a/assets/sass/_sub.scss +++ b/assets/sass/_sub.scss @@ -3,8 +3,7 @@ flex-direction: row; align-items: center; @include bp(md) { - display: grid; - grid-template-columns: 2fr 2fr; + display: flex; grid-template-rows: auto; width: 40%; } @@ -21,7 +20,7 @@ margin: 0.5em 1em 0.5em 0; @include bp(md) { padding: 0.5em 1em; - margin-left: 1em; + margin-left: auto; margin-bottom: 0.5em; box-shadow: 2px 2px 5px $color-alpha-black; } diff --git a/components/MyHeader.vue b/components/MyHeader.vue index 32e0634..8887ed7 100644 --- a/components/MyHeader.vue +++ b/components/MyHeader.vue @@ -17,13 +17,6 @@ header.header i.fas.fa-info-circle.fa-lg span | {{$t('common.about')}} - .sub-button - i.fas.fa-language.fa-lg - select(onChange="location.href=value;") - option.language(disabled selected) - | Language: {{$i18n.locales.filter((i) => { return i.code === $i18n.locale })[0].name}} - option(v-for="locale in $i18n.locales" :value="switchLocalePath(locale.code)") - | {{ locale.name }} .qrcode vue-qrcode(v-bind:value='fullURL' tag="img") diff --git a/nuxt-i18n.config.js b/nuxt-i18n.config.js index 85cee58..bfd192a 100644 --- a/nuxt-i18n.config.js +++ b/nuxt-i18n.config.js @@ -1,82 +1,10 @@ export default { locales: [ - { - code: 'en', - iso: 'en', - name: 'English', - file: 'en.json' - }, - { - code: 'es', - iso: 'es', - name: 'Español', - file: 'es.json' - }, - { - code: 'hi', - iso: 'hi', - name: 'हिंदी', - file: 'hi.json' - }, { code: 'ja', iso: 'ja', name: '日本語', file: 'ja.json' - }, - { - code: 'ko', - iso: 'ko', - name: '한국어', - file: 'ko.json' - }, - { - code: 'my', - iso: 'my', - name: 'မြန်မာ', - file: 'my.json' - }, - { - code: 'ne', - iso: 'ne', - name: 'नेपाली', - file: 'ne.json' - }, - { - code: 'pt', - iso: 'pt', - name: 'português', - file: 'pt.json' - }, - { - code: 'si', - iso: 'si', - name: 'සිංහල', - file: 'si.json' - }, - { - code: 'th', - iso: 'th', - name: 'แบบไทย', - file: 'th.json' - }, - { - code: 'tw', - iso: 'tw', - name: '正體中文 (繁體)', - file: 'tw.json' - }, - { - code: 'vn', - iso: 'vn', - name: 'Tiếng Việt', - file: 'vn.json' - }, - { - code: 'zh', - iso: 'zh', - name: '中文(简体)', - file: 'zh.json' } ], strategy: 'prefix_except_default',