Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6212 from mcdmaster/fix/ts424
Browse files Browse the repository at this point in the history
Fix/ts424
  • Loading branch information
soutaito committed Apr 26, 2021
2 parents 1f58efc + 888bb03 commit 2da6ec1
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 92 deletions.
2 changes: 1 addition & 1 deletion components/AppLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { mdiOpenInNew } from '@mdi/js'
import Vue from 'vue'
import { isExternal } from '@/utils/urls.ts'
import { isExternal } from '@/utils/urls'
type InternalAttr = {
to: String
Expand Down
2 changes: 1 addition & 1 deletion components/CardsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { mdiChartTimelineVariant } from '@mdi/js'
import Vue from 'vue'
import { EventBus, TOGGLE_EVENT } from '@/utils/tab-event-bus.ts'
import { EventBus, TOGGLE_EVENT } from '@/utils/tab-event-bus'
const CardsMonitoring = () => import('@/components/CardsMonitoring.vue')
const CardsReference = () => import('@/components/CardsReference.vue')
Expand Down
2 changes: 1 addition & 1 deletion components/ScrollableChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Vue, { PropType } from 'vue'
import { ThisTypedComponentOptionsWithRecordProps } from 'vue/types/options'
import { DisplayData } from '@/plugins/vue-chart'
import { EventBus, TOGGLE_EVENT } from '@/utils/tab-event-bus.ts'
import { EventBus, TOGGLE_EVENT } from '@/utils/tab-event-bus'
type Data = {
chartWidth: number
Expand Down
24 changes: 14 additions & 10 deletions nuxt-i18n.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { NuxtVueI18n } from 'nuxt-i18n'
import { NuxtConfig } from '@nuxt/types'
import { NuxtVueI18n } from 'nuxt-i18n/types'

const dateTimeFormatsCommon = {
dateTime: {
Expand Down Expand Up @@ -29,21 +30,24 @@ const dateTimeFormatsCommon = {
},
}

const options: NuxtVueI18n.Options.AllOptionsInterface = {
const options: NuxtConfig = {
strategy: 'prefix_except_default',
detectBrowserLanguage: false,
defaultLocale: 'ja',

vueI18n: {
fallbackLocale: 'ja',
formatFallbackMessages: true,
dateTimeFormats: {
ja: dateTimeFormatsCommon,
en: dateTimeFormatsCommon,
'zh-cn': dateTimeFormatsCommon,
'zh-tw': dateTimeFormatsCommon,
ko: dateTimeFormatsCommon,
'ja-basic': dateTimeFormatsCommon,
...[
{ ja: dateTimeFormatsCommon },
{ en: dateTimeFormatsCommon },
{ 'zh-cn': dateTimeFormatsCommon },
{ 'zh-tw': dateTimeFormatsCommon },
{ ko: dateTimeFormatsCommon },
{ 'ja-basic': dateTimeFormatsCommon },
],
},
formatFallbackMessages: true,
},
// vueI18nLoader: true,
lazy: true,
Expand Down Expand Up @@ -104,4 +108,4 @@ const options: NuxtVueI18n.Options.AllOptionsInterface = {
seo: false,
}

export default options
export default options as NuxtVueI18n.Options.AllOptionsInterface
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"stylelint-scss": "3.19.0",
"ts-loader": "8.1.0",
"ts-node": "9.1.1",
"typescript": "4.1.5",
"typescript": "4.2.4",
"vue-axe": "2.4.4",
"vue-template-compiler": "2.6.12"
}
Expand Down
Loading

0 comments on commit 2da6ec1

Please sign in to comment.