Skip to content

Commit

Permalink
fix: drop vueI18n option warning (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Aug 17, 2023
1 parent fdf54f4 commit d222364
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
17 changes: 0 additions & 17 deletions specs/issues/1721.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import createDebug from 'debug'
import { isObject } from '@intlify/shared'
import {
defineNuxtModule,
isNuxt2,
Expand Down Expand Up @@ -154,21 +153,6 @@ export default defineNuxtModule<NuxtI18nOptions>({
* resolve vue-i18n config path
*/

// TODO: remove before v8 official release
if (isObject(options.vueI18n)) {
throw new Error(
formatMessage(
'The `vueI18n` option is no longer be specified with object. ' +
'\n' +
`It must be specified in the configuration file via the 'i18n.config' path.` +
'\n' +
`About deprecated reason, see https://v8.i18n.nuxtjs.org/guide/migrating#change-the-route-key-rules-in-pages-option` +
'\n' +
`About new configuration style, see https://v8.i18n.nuxtjs.org/getting-started/basic-usage#translate-with-vue-i18n`
)
)
}

const vueI18nConfigPathInfo = await resolveVueI18nConfigInfo(options, nuxt.options.buildDir, nuxt.options.rootDir)
if (vueI18nConfigPathInfo.absolute == null) {
logger.info(`Vue I18n configuration file does not exist at ${vueI18nConfigPathInfo.relative}. Skipping...`)
Expand Down

0 comments on commit d222364

Please sign in to comment.