Skip to content

Commit 617439f

Browse files
committed
refactor: more cleanup and refactoring
1 parent 6f82e61 commit 617439f

File tree

3 files changed

+192
-217
lines changed

3 files changed

+192
-217
lines changed

packages/unplugin-vue-i18n/src/core/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import defu from 'defu'
22
import { normalize } from 'pathe'
33
import { toArray } from '../utils/misc'
44

5-
import type { PluginOptions } from '../types'
5+
import type { PluginOptions, SFCLangFormat } from '../types'
66
import type { TranslationDirectiveResolveIndetifier } from '../vue'
77

88
/**
@@ -40,7 +40,7 @@ export function resolveOptions(options: PluginOptions) {
4040
allowDynamic: false,
4141
globalSFCScope: false,
4242
forceStringify: false,
43-
defaultSFCLang: 'json',
43+
defaultSFCLang: 'json' as SFCLangFormat,
4444
dropMessageCompiler: false,
4545
transformI18nBlock: undefined,
4646
optimizeTranslationDirective: false

0 commit comments

Comments
 (0)