-
-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ improvement(translation): fix hypenate included key translating
Closes #24
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ Vue.use(plugin) | |
require('./i18n') | ||
require('./asset') | ||
require('./component') | ||
require('./issues') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) | ||
}) | ||
}) | ||
}) |