Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
bump vue-i18n for Vue 2 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Sep 25, 2021
1 parent 0696d25 commit fd17ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = (api, options, rootOptions) => {
pkg.vue.pluginOptions.i18n['compositionOnly'] = !!enableLegacy
pkg.vue.pluginOptions.i18n['fullInstall'] = true
} else {
pkg.dependencies['vue-i18n'] = '^8.25.0'
pkg.dependencies['vue-i18n'] = '^8.26.1'
if (enableInSFC) {
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^1.1.0'
}
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/generator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('javascript', async () => {
const locale = files['src/locales/en.json']
expect(locale).toMatch(`{\n "message": "hello i18n !!"\n}`)
const pack = files['package.json']
expect(pack).toMatch(`"vue-i18n": "^8.25.0"`)
expect(pack).toMatch(`"vue-i18n": "^8.26.1"`)
expect(pack).not.toMatch(`"@intlify/vue-i18n-loader": "^1.1.0"`)
})

Expand Down Expand Up @@ -57,6 +57,6 @@ test('typescript', async () => {
const sfc = files['src/components/HelloI18n.vue']
expect(sfc).toMatch(`export default Vue.extend({`)
const pack = files['package.json']
expect(pack).toMatch(`"vue-i18n": "^8.25.0"`)
expect(pack).toMatch(`"vue-i18n": "^8.26.1"`)
expect(pack).toMatch(`"@intlify/vue-i18n-loader": "^1.1.0"`)
})

0 comments on commit fd17ba4

Please sign in to comment.