diff --git a/.gitignore b/.gitignore
index 1fa4acd..e89ea9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,7 @@ dist
# Envs
.env.*.local
+
+# d.ts
+auto-imports.d.ts
+components.d.ts
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 4a8ae50..6b426a0 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,7 +1,3 @@
{
- "recommendations": [
- "vue.volar",
- "esbenp.prettier-vscode",
- "Lokalise.i18n-ally"
- ]
+ "recommendations": ["vue.volar", "esbenp.prettier-vscode"]
}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 0edd310..a2085fa 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -13,6 +13,5 @@
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
- },
- "i18n-ally.localesPaths": ["locales"]
+ }
}
diff --git a/README.md b/README.md
index fe1c063..c6124fa 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,6 @@
- 🎨 [UnoCSS](https://github.com/antfu/unocss) - the instant on-demand atomic CSS engine
- 😃 [Use icons from any icon sets with classes](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
-- 🌍 I18n ready power by [vue-i18n](https://github.com/intlify/vue-i18n-next)
- 🔥 Use the [new `
diff --git a/src/modules/i18n.ts b/src/modules/i18n.ts
deleted file mode 100644
index d5236dd..0000000
--- a/src/modules/i18n.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import {createI18n} from 'vue-i18n'
-import {type UserModule} from '~/types'
-
-// Import i18n resources
-// https://vitejs.dev/guide/features.html#glob-import
-const messages = Object.fromEntries(
- Object.entries(
- import.meta.glob<{default: any}>('../../locales/*.y(a)?ml', {eager: true}),
- ).map(([key, value]) => {
- const yaml = key.endsWith('.yaml')
- return [key.slice(14, yaml ? -5 : -4), value.default]
- }),
-)
-
-export const install: UserModule = ({app}) => {
- const i18n = createI18n({
- legacy: false,
- locale: 'en',
- messages,
- })
-
- app.use(i18n)
-}
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 58cc9d8..30db621 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -6,5 +6,5 @@ meta:
- Button
+ xxx
diff --git a/src/pages/login.vue b/src/pages/login.vue
index ba8fbf4..73838aa 100644
--- a/src/pages/login.vue
+++ b/src/pages/login.vue
@@ -8,9 +8,7 @@ meta:
-
-
{{ t('title') }}
+ 登录
-
-
-zh-CN:
- title: 登录
-en:
- title: Login
-jp:
- title: ログイン
-
diff --git a/src/utils/api.ts b/src/utils/api.ts
index a755a81..27140e9 100644
--- a/src/utils/api.ts
+++ b/src/utils/api.ts
@@ -1,18 +1,18 @@
// refs: https://github.com/sindresorhus/ky
-import Ky from 'ky'
+// import Ky from 'ky'
-const api = Ky.create({
- prefixUrl: '/api',
- hooks: {
- beforeRequest: [
- async (request, options) => {
- const token = window.localStorage.getItem('TOKEN')
- if (token) {
- request.headers.set('token', token)
- }
- },
- ],
- },
-})
+// const api = Ky.create({
+// prefixUrl: '/api',
+// hooks: {
+// beforeRequest: [
+// async (request, options) => {
+// const token = window.localStorage.getItem('TOKEN')
+// if (token) {
+// request.headers.set('token', token)
+// }
+// },
+// ],
+// },
+// })
-export {api}
+// export {api}
diff --git a/tsconfig.json b/tsconfig.json
index 6f95dc4..59059fd 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -17,7 +17,6 @@
"types": [
"vitest",
"vite/client",
- "vue/ref-macros",
"vite-plugin-pages/client",
"vite-plugin-vue-layouts/client",
"unplugin-icons/types/vue"
diff --git a/vite.config.ts b/vite.config.ts
index 534f5b7..103b6f8 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -8,7 +8,6 @@ import Components from 'unplugin-vue-components/vite'
import {ElementPlusResolver} from 'unplugin-vue-components/resolvers'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
-import VueI18n from '@intlify/vite-plugin-vue-i18n'
import AutoImport from 'unplugin-auto-import/vite'
import Unocss from 'unocss/vite'
import Inspect from 'vite-plugin-inspect'
@@ -40,7 +39,6 @@ export default defineConfig(({mode}) => {
Vue({
include: [/\.vue$/, /\.md$/],
- reactivityTransform: true,
}),
// https://github.com/hannoeru/vite-plugin-pages
@@ -64,7 +62,6 @@ export default defineConfig(({mode}) => {
imports: [
'vue',
'vue-router',
- 'vue-i18n',
'vue/macros',
'@vueuse/head',
'@vueuse/core',
@@ -83,7 +80,6 @@ export default defineConfig(({mode}) => {
}),
ElementPlusResolver({
importStyle: 'css',
- ssr: true,
}),
],
extensions: ['vue', 'md', 'ts'],
@@ -101,13 +97,6 @@ export default defineConfig(({mode}) => {
// see unocss.config.ts for config
Unocss(),
- // https://github.com/intlify/bundle-tools/tree/main/packages/vite-plugin-vue-i18n
- VueI18n({
- runtimeOnly: true,
- compositionOnly: true,
- include: [path.resolve(__dirname, 'locales/**')],
- }),
-
// https://github.com/antfu/vite-plugin-inspect
// Visit http://localhost:3333/__inspect/ to see the inspector
Inspect(),