Skip to content

Commit

Permalink
fix: use local klona dependency from the plugin (#1008)
Browse files Browse the repository at this point in the history
Resolves #1004
  • Loading branch information
rchl authored Jan 5, 2021
1 parent c00fd90 commit 42c3cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function (userOptions) {

this.nuxt.hook('build:before', () => buildHook(this, options))

this.options.alias['~i18n-klona'] = require.resolve('klona/full')
this.options.router.middleware.push('nuxti18n')
this.options.render.bundleRenderer.directives = this.options.render.bundleRenderer.directives || {}
this.options.render.bundleRenderer.directives.t = i18nExtensionsDirective
Expand Down
2 changes: 1 addition & 1 deletion src/templates/plugin.main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import { klona } from 'klona/full'
import { nuxtI18nSeo } from './seo-head'
import {
baseUrl,
Expand Down Expand Up @@ -36,6 +35,7 @@ import {
setLocaleCookie,
syncVuex
} from './utils-common'
import { klona } from '~i18n-klona'

Vue.use(VueI18n)

Expand Down

0 comments on commit 42c3cd5

Please sign in to comment.