Skip to content

Commit

Permalink
remove multi language
Browse files Browse the repository at this point in the history
  • Loading branch information
halsk committed Mar 20, 2024
1 parent a0cbb27 commit 5697599
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 82 deletions.
5 changes: 2 additions & 3 deletions assets/sass/_sub.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
Expand All @@ -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;
}
Expand Down
7 changes: 0 additions & 7 deletions components/MyHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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")
</template>
Expand Down
72 changes: 0 additions & 72 deletions nuxt-i18n.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 5697599

Please sign in to comment.