Skip to content

Commit

Permalink
feat: remove i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
yuler committed Jan 2, 2024
1 parent 70b530e commit 9742fa2
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 889 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ dist

# Envs
.env.*.local

# d.ts
auto-imports.d.ts
components.d.ts
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [
"vue.volar",
"esbenp.prettier-vscode",
"Lokalise.i18n-ally"
]
"recommendations": ["vue.volar", "esbenp.prettier-vscode"]
}
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"i18n-ally.localesPaths": ["locales"]
}
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<!-- - 📲 [PWA](https://github.com/antfu/vite-plugin-pwa) -->
- 🎨 [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)
<!-- - 🔎 [Component Preview](https://github.com/antfu/vite-plugin-vue-component-preview)
- 🗒 [Markdown Support](https://github.com/antfu/vite-plugin-vue-markdown) -->
- 🔥 Use the [new `<script setup>` syntax](https://github.com/vuejs/rfcs/pull/227)
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"packageManager": "pnpm@8.13.1",
"author": "yuler <is.yuler@gmail.com>",
"scripts": {
"dev": "vite --open",
"dev": "vite",
"preview": "vite preview",
"build": "vue-tsc --noEmit && vite build",
"build:visualizer": "VISUALIZER=true vite build",
"preview": "vite preview",
"clean": "rm -rf dist && rm -rf src/{auto-imports,components}.d.ts",
"prettier": "npx prettier",
"g": "plop",
"up": "pnpm dlx taze -I"
Expand All @@ -22,12 +23,10 @@
"nprogress": "^0.2.0",
"pinia": "^2.1.7",
"vue": "^3.4.3",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@iconify/json": "^2.2.163",
"@intlify/vite-plugin-vue-i18n": "^7.0.0",
"@types/js-cookie": "^3.0.6",
"@types/node": "^20.10.6",
"@types/nprogress": "^0.2.3",
Expand Down
2 changes: 1 addition & 1 deletion plop-templates/page.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<route lang="yaml">
meta:
title: t('menu.dashboard')
title: 名称
# only support element plus icons, refs: https://element-plus.org/en-US/component/icon.html#icon-collection
icon: list
</route>
Expand Down
177 changes: 0 additions & 177 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9742fa2

Please sign in to comment.