Skip to content

Commit

Permalink
Showing 18 changed files with 979 additions and 1,620 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
public
docs/api/*.md
!docs/api/injection.md
packages/vue-i18n/index.html
5 changes: 0 additions & 5 deletions examples/backend/.gitignore

This file was deleted.

19 changes: 9 additions & 10 deletions examples/backend/package.json
Original file line number Diff line number Diff line change
@@ -10,22 +10,21 @@
"preview": "vite preview"
},
"dependencies": {
"vue": "3",
"vue": "^3.3.4",
"vue-i18n": "workspace:*"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.9.3",
"@vue/compiler-sfc": "^3.3.4",
"vite": "^2.6.0",
"typescript": "^4.3.2",
"vue-tsc": "^1.6.5",
"@vitejs/plugin-vue": "^4.2.3",
"vite": "^4.4.5",
"typescript": "^5.0.2",
"vue-tsc": "^1.8.5",
"@types/express": "^4.17.13",
"@types/body-parser": "^1.19.2",
"express": "^4.17.1",
"body-parser": "^1.19.1",
"jiti": "^1.12.9",
"ohmyfetch": "^0.4.15",
"@intlify/vite-plugin-vue-i18n": "next",
"@intlify/bundle-utils": "latest"
"jiti": "^1.19.3",
"ofetch": "^1.1.1",
"@intlify/unplugin-vue-i18n": "^0.12.0",
"@intlify/bundle-utils": "next"
}
}
4 changes: 2 additions & 2 deletions examples/backend/scripts/generate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { promises as fs } from 'fs'
import path from 'path'
import { createServer } from 'vite'
import { $fetch } from 'ohmyfetch'
import { $fetch } from 'ofetch'
import { generateJSON } from '@intlify/bundle-utils'
import { locales } from '../src/constants'

@@ -35,7 +35,7 @@ async function compile(locale: string, message: ResourceSchema) {
const resource = await $fetch<ResourceSchema>(
`http://localhost:3000/api/resources/${locale}`
)
const { code, map, filename } = await compile(locale, resource)
const { code, filename } = await compile(locale, resource)
await fs.writeFile(filename, code)
}

2 changes: 1 addition & 1 deletion examples/backend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
import bodyParser from 'body-parser'

/**
4 changes: 0 additions & 4 deletions examples/lazy-loading/vite/.gitignore

This file was deleted.

12 changes: 6 additions & 6 deletions examples/lazy-loading/vite/package.json
Original file line number Diff line number Diff line change
@@ -8,16 +8,16 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "3",
"vue": "^3.3.4",
"vue-i18n": "workspace:*",
"vue-router": "4"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "next",
"@vitejs/plugin-vue": "^4.2.0",
"@vue/compiler-sfc": "latest",
"vite": "^4.3.0",
"vue-tsc": "^1.6.5"
"@intlify/unplugin-vue-i18n": "^0.12.0",
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
},
"private": true
}
2 changes: 1 addition & 1 deletion examples/lazy-loading/vite/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import vueI18n from '@intlify/unplugin-vue-i18n/vite'

export default defineConfig({
plugins: [
5 changes: 0 additions & 5 deletions examples/tsx/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions examples/tsx/package.json
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@
"vue-i18n": "workspace:*"
},
"devDependencies": {
"@vitejs/plugin-vue-jsx": "^1.1.5",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.3.4",
"vite": "^4.0.0",
"vue-tsc": "^0.3.0"
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
}
}
5 changes: 0 additions & 5 deletions examples/type-safe/global-type-definition/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions examples/type-safe/global-type-definition/package.json
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.3.4",
"vite": "^4.0.0",
"typescript": "^4.3.2",
"vue-tsc": "^0.3.0"
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
}
}
5 changes: 0 additions & 5 deletions examples/type-safe/type-annotation/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions examples/type-safe/type-annotation/package.json
Original file line number Diff line number Diff line change
@@ -15,8 +15,8 @@
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.3.4",
"vite": "^4.3.0",
"typescript": "^4.3.2",
"vue-tsc": "^1.6.5"
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
}
}
11 changes: 5 additions & 6 deletions examples/web-components/package.json
Original file line number Diff line number Diff line change
@@ -13,11 +13,10 @@
"vue-i18n": "workspace:*"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.0",
"@vue/compiler-sfc": "^3.3.4",
"vite": "^4.3.0",
"typescript": "^4.3.2",
"vue-tsc": "^1.6.5",
"@intlify/vite-plugin-vue-i18n": "^2.4.0"
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vue-tsc": "^1.8.5",
"@intlify/unplugin-vue-i18n": "^0.12.0"
}
}
4 changes: 2 additions & 2 deletions examples/web-components/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueI18n from '@intlify/vite-plugin-vue-i18n'
import vueI18n from '@intlify/unplugin-vue-i18n/vite'

// https://vitejs.dev/config/
export default defineConfig({
@@ -12,6 +12,6 @@ export default defineConfig({
}
}
}),
vueI18n()
vueI18n({})
]
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@
"execa": "^5.0.0",
"fixpack": "^4.0.0",
"globby": "^13.1.4",
"jiti": "^1.18.2",
"jiti": "^1.19.3",
"js-yaml": "^4.1.0",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.0",
Loading

0 comments on commit fb2e9f3

Please sign in to comment.