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

Commit fd17ba4

Browse files
authored
bump vue-i18n for Vue 2 (#239)
1 parent 0696d25 commit fd17ba4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = (api, options, rootOptions) => {
5959
pkg.vue.pluginOptions.i18n['compositionOnly'] = !!enableLegacy
6060
pkg.vue.pluginOptions.i18n['fullInstall'] = true
6161
} else {
62-
pkg.dependencies['vue-i18n'] = '^8.25.0'
62+
pkg.dependencies['vue-i18n'] = '^8.26.1'
6363
if (enableInSFC) {
6464
pkg.devDependencies['@intlify/vue-i18n-loader'] = '^1.1.0'
6565
}

tests/unit/generator.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test('javascript', async () => {
2323
const locale = files['src/locales/en.json']
2424
expect(locale).toMatch(`{\n "message": "hello i18n !!"\n}`)
2525
const pack = files['package.json']
26-
expect(pack).toMatch(`"vue-i18n": "^8.25.0"`)
26+
expect(pack).toMatch(`"vue-i18n": "^8.26.1"`)
2727
expect(pack).not.toMatch(`"@intlify/vue-i18n-loader": "^1.1.0"`)
2828
})
2929

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

0 commit comments

Comments
 (0)