Skip to content

Commit

Permalink
⚡ improvement(translation): fix hypenate included key translating
Browse files Browse the repository at this point in the history
Closes #24
  • Loading branch information
kazupon committed May 8, 2016
1 parent 02ae2d8 commit d0a415f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/specs/fixture/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default {
}
},
'hello world': 'Hello World',
'Hello {0}': 'Hello {0}'
'Hello {0}': 'Hello {0}',
'continue-with-new-account': 'continue with new account'
},
ja: {
message: {
Expand Down
1 change: 1 addition & 0 deletions test/specs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Vue.use(plugin)
require('./i18n')
require('./asset')
require('./component')
require('./issues')
18 changes: 18 additions & 0 deletions test/specs/issues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import assert from 'power-assert'
import Vue from 'vue'
import locales from './fixture/locales'


describe('issues', () => {
let vm

describe('#24', () => {
beforeEach(() => {
vm = new Vue()
})

it('should be translated', () => {
assert(vm.$t('continue-with-new-account') === locales[Vue.config.lang]['continue-with-new-account'])
})
})
})

0 comments on commit d0a415f

Please sign in to comment.