Skip to content

Commit 1700464

Browse files
committed
refactor: simplify resource logic
1 parent 24c39e0 commit 1700464

File tree

2 files changed

+83
-215
lines changed

2 files changed

+83
-215
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { PluginOptions } from '../types'
55
import type { TranslationDirectiveResolveIndetifier } from '../vue'
66

77
export function resolveOptions(options: PluginOptions) {
8-
const moduleType = (options.module || 'vue-i18n') as string
8+
const moduleType = options.module || 'vue-i18n'
99

1010
// normalize for `options.onlyLocales`
1111
let onlyLocales: string[] = []

0 commit comments

Comments
 (0)