Skip to content

Commit bbc08e1

Browse files
authored
Merge pull request #622 from codeforjapan/development
Release 1.1.1
2 parents c9c124c + 62b6e26 commit bbc08e1

27 files changed

+58
-56
lines changed

nuxt-i18n.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const defaultLocale = 'ja'
22

33
const options = {
4-
strategy: 'no_prefix',
4+
strategy: 'prefix_except_default',
55
detectBrowserLanguage: false,
66
defaultLocale,
77
vueI18n: {
@@ -24,7 +24,7 @@ const options = {
2424
format: 'en',
2525
},
2626
{
27-
code: 'zh-goyu',
27+
code: 'zh-tw',
2828
displayName: '台灣華語',
2929
file: 'zh_TW.json',
3030
format: 'zh-tw',

src/components/EditLessonScreenInner1.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<v-color-picker
9090
v-if="colorPickerOpen"
9191
v-model="tempFormData.subjectColor"
92-
disabled
92+
hide-sliders
9393
hide-canvas
9494
hide-inputs
9595
hide-mode-switch

src/components/LessonSummaryCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default Vue.extend({
8383
methods: {
8484
toLessonDetail() {
8585
const lesson = this.lesson as LessonWithId
86-
this.$router.push('/lesson/?lessonId=' + lesson.id)
86+
this.$router.push(this.localePath('/lesson/?lessonId=' + lesson.id))
8787
},
8888
},
8989
})

src/layouts/background.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="loader">Loading</div>
55
</v-overlay>
66
<v-app-bar fixed app class="bar" elevation="0">
7-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
7+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
88
<header-logo v-else />
99
<AppLanguageSelector />
1010
</v-app-bar>

src/layouts/classes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<div class="loader">Loading</div>
6565
</v-overlay>
6666
<v-app-bar fixed app class="bar" elevation="0" extension-height="83">
67-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
67+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
6868
<header-logo v-else />
6969
<AppLanguageSelector />
7070
<v-spacer />
@@ -153,7 +153,7 @@ export default Vue.extend({
153153
async clickLogout() {
154154
await vxm.user.logout()
155155
await vxm.app.resetDate()
156-
await this.$router.push('/')
156+
await this.$router.push(this.localePath('/'))
157157
},
158158
},
159159
})

src/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="loader">Loading</div>
55
</v-overlay>
66
<v-app-bar fixed app class="bar" elevation="0">
7-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
7+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
88
<header-logo v-else />
99
<AppLanguageSelector />
1010
</v-app-bar>

src/layouts/error.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<h1 v-else>
77
{{ otherError }}
88
</h1>
9-
<NuxtLink to="/">Home page</NuxtLink>
9+
<NuxtLink :to="localePath('/')">Home page</NuxtLink>
1010
</v-app>
1111
</template>
1212

src/layouts/lesson.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="loader">Loading</div>
55
</v-overlay>
66
<v-app-bar fixed app class="bar" elevation="0">
7-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
7+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
88
<header-logo v-else />
99
<AppLanguageSelector />
1010
<v-spacer />

src/layouts/protected.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
),
3131
action: () => {
3232
unloadClassData()
33-
$router.push('/user/classlist')
33+
$router.push(localePath('/user/classlist'))
3434
return false
3535
},
3636
},
@@ -57,7 +57,7 @@
5757
<div class="loader">Loading</div>
5858
</v-overlay>
5959
<v-app-bar fixed app class="bar" elevation="0" extension-height="83">
60-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
60+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
6161
<header-logo v-else />
6262
<AppLanguageSelector />
6363
<v-spacer />
@@ -78,7 +78,7 @@
7878
outlined
7979
rounded
8080
color="#0071C2"
81-
@click="$router.push('/user/editUserData')"
81+
@click="$router.push(localePath('/user/editUserData'))"
8282
>
8383
<v-icon>mdi-cog</v-icon>
8484
</v-btn>

src/layouts/simple.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="loader">Loading</div>
55
</v-overlay>
66
<v-app-bar fixed app class="bar" elevation="0">
7-
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-goyu'" />
7+
<header-logo-zhtw v-if="$root.$i18n.locale === 'zh-tw'" />
88
<header-logo v-else />
99
<AppLanguageSelector />
1010
<v-spacer />

0 commit comments

Comments
 (0)