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

how to work with vue-i18n !? #69

Open
sky790312 opened this issue Aug 1, 2017 · 1 comment
Open

how to work with vue-i18n !? #69

sky790312 opened this issue Aug 1, 2017 · 1 comment

Comments

@sky790312
Copy link

my component combines with vue-i18n. I try to add like this:

import { play } from 'vue-play'
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import IModal2 from '../../src/components/IModal2'

Vue.component('i-modal-2', IModal2)
Vue.use(VueI18n)

play('IModal2')
  .add('default',
    `<i-modal-2>
      <div slot="body">default modal with slot body..</div>
    </i-modal-2>`)

but it still can't understand $t(xxx) in my component

@kazupon
Copy link
Contributor

kazupon commented Aug 3, 2017

fixed, and I provided the storybook example.
please check vue-i18n v7.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants